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