Autosave: 2024-02-25 19:42:06

This commit is contained in:
thomasabishop 2024-02-25 19:42:06 +00:00
parent efe2322f8c
commit c1b26c54da

View file

@ -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##*/}"