From da9ad95f038500d45b86b77394fbcb252934db89 Mon Sep 17 00:00:00 2001 From: thomasabishop Date: Sat, 21 Jan 2023 13:51:23 +0000 Subject: [PATCH] Autosave: 2023-01-21 13:51:23 --- _scripts/auto_save.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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