From bb1e3a7051f4e3b7f36e34c1c653889ccac81dcc Mon Sep 17 00:00:00 2001 From: thomasabishop Date: Fri, 1 Mar 2024 09:02:17 +0000 Subject: [PATCH] Autosave: 2024-03-01 09:02:17 --- scripts/auto_save.sh | 2 +- scripts/purge_images.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/auto_save.sh b/scripts/auto_save.sh index 967317d..f46176a 100755 --- a/scripts/auto_save.sh +++ b/scripts/auto_save.sh @@ -29,4 +29,4 @@ git pull >/dev/null 2>&1 git add . git commit -q -m "Autosave: $(date +"%Y-%m-%d %H:%M:%S")" git push -notify-send "Auto-save complete" "Changes committed to remote repository" +notify-send "Auto-save complete" "Zettelkasten changes committed to remote repository" diff --git a/scripts/purge_images.sh b/scripts/purge_images.sh index 554666e..400a858 100755 --- a/scripts/purge_images.sh +++ b/scripts/purge_images.sh @@ -3,13 +3,13 @@ # If there are images in img/ that are not being used by the Zettelkasten, delete them # Loop through /img directory -find "${EOLAS_PATH}/img" -type f | while read filename; do +find "/home/thomas/repos/eolas/img" -type f | while read filename; do # Check each .md file in ZK for image search_result=$(rg "${filename##*/}" "${EOLAS_PATH}/zk" --type markdown) # If the image is not found in any file, delete it if [ -z "$search_result" ]; then echo "Deleted unused image: ${filename##*/}" - rm $filename + # rm $filename fi done