script: try and get notification working

This commit is contained in:
thomasabishop 2024-03-09 19:47:02 +00:00
parent 7d61f1880d
commit 9a496a120f

View file

@ -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"