From 9a496a120f2e852882f08b2b9587ea03a0df5539 Mon Sep 17 00:00:00 2001 From: thomasabishop Date: Sat, 9 Mar 2024 19:47:02 +0000 Subject: [PATCH] script: try and get notification working --- 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 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"