Update gitsync.sh
This commit is contained in:
@@ -119,13 +119,13 @@ run_deployment() {
|
||||
if [ -n "$OLD_HEAD" ]; then
|
||||
NEW_HEAD=$(git rev-parse HEAD)
|
||||
if [ "$OLD_HEAD" != "$NEW_HEAD" ]; then
|
||||
echo -e "\nGit changes since last deploy:"
|
||||
echo -e "Git changes since last deploy:"
|
||||
git diff --shortstat "$OLD_HEAD" "$NEW_HEAD"
|
||||
else
|
||||
echo -e "\nNo Git changes were applied."
|
||||
echo -e "No Git changes were applied."
|
||||
fi
|
||||
else
|
||||
echo -e "\nGit repository initialized."
|
||||
echo -e "Git repository initialized."
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user