From 1eff483b24ae69252d27c7909bb25962995b670d Mon Sep 17 00:00:00 2001 From: thomasabishop Date: Sun, 25 Feb 2024 19:57:22 +0000 Subject: [PATCH] Autosave: 2024-02-25 19:57:22 --- scripts/purge_images.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/purge_images.sh b/scripts/purge_images.sh index 766a6f5..72e74b5 100755 --- a/scripts/purge_images.sh +++ b/scripts/purge_images.sh @@ -2,7 +2,8 @@ # If there are images in img/ that are not being used by the Zettelkasten, delete them find /home/thomas/repos/eolas/img -type f | while read filename; do - rg "${filename##*/}" ../ --type markdown >/dev/null 2>&1 + pwd + rg "${filename##*/}" ../ --type markdown >/dev/null 2>&1 if [ "$?" -eq 1 ]; then echo "Deleted unused image: ${filename##*/}" # rm $filename