From c1b26c54da9a459af0d1aacdb21dc7d06a357277 Mon Sep 17 00:00:00 2001 From: thomasabishop Date: Sun, 25 Feb 2024 19:42:06 +0000 Subject: [PATCH] Autosave: 2024-02-25 19:42:06 --- scripts/purge_images.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/purge_images.sh b/scripts/purge_images.sh index 55547b6..57a0bf9 100755 --- a/scripts/purge_images.sh +++ b/scripts/purge_images.sh @@ -1,7 +1,7 @@ #!/bin/bash # 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 +find /home/thomas/repos/eolas/img -type f | while read filename; do rg "${filename##*/}" ../ --type markdown >/dev/null 2>&1 if [ "$?" -eq 1 ]; then echo "Deleted unused image: ${filename##*/}"