-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tobias Kündig
committed
May 2, 2016
1 parent
4a809d1
commit 8f3f2d7
Showing
1 changed file
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
#!/usr/bin/env bash | ||
HOSTNAME=$( hostname ) | ||
GIT=$( which git ) | ||
|
||
# Commit changes from prod server back to git | ||
if [[ -n $(git status -s) ]]; then | ||
git add . | ||
git commit -m "[ci skip] Added changes from $HOSTNAME" | ||
git push origin master | ||
$GIT add . | ||
$GIT commit -m "[ci skip] Added changes from $HOSTNAME" | ||
$GIT push origin master | ||
fi |