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