diff --git a/scripts/auto_save.sh b/scripts/auto_save.sh index 3d51922..31dcce6 100755 --- a/scripts/auto_save.sh +++ b/scripts/auto_save.sh @@ -24,10 +24,11 @@ if [ "$changes_exist" -eq 0 ]; then exit 0 fi + echo "Changes exist. Updating remote..." git pull >/dev/null 2>&1 git add . git commit -q -m "Autosave: $(date +"%Y-%m-%d %H:%M:%S")" +notify-send "Auto-save complete" "Zettelkasten changes committed to remote repository" git push -notify-send "Auto-save complete" "Zettelkasten changes committed to remote repository"