diff --git a/_scripts/auto_save.sh b/_scripts/auto_save.sh index 6bee34a..6b693b8 100755 --- a/_scripts/auto_save.sh +++ b/_scripts/auto_save.sh @@ -20,10 +20,11 @@ CHANGES_EXIST="$(git status --porcelain | wc -l)" # If no changes, exit. Else commit and push with timestamp if [ "$CHANGES_EXIST" -eq 0 ]; then + echo "No changes" exit 0 fi git pull >/dev/null 2>&1 git add . git commit -q -m "Autosave: $(date +"%Y-%m-%d %H:%M:%S")" -git push -q +git push