Autosave: 2024-02-25 19:57:22

This commit is contained in:
thomasabishop 2024-02-25 19:57:22 +00:00
parent 32f33aa157
commit 1eff483b24

View file

@ -2,6 +2,7 @@
# If there are images in img/ that are not being used by the Zettelkasten, delete them # 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
pwd
rg "${filename##*/}" ../ --type markdown >/dev/null 2>&1 rg "${filename##*/}" ../ --type markdown >/dev/null 2>&1
if [ "$?" -eq 1 ]; then if [ "$?" -eq 1 ]; then
echo "Deleted unused image: ${filename##*/}" echo "Deleted unused image: ${filename##*/}"