update clean image dir script to use eolas
This commit is contained in:
parent
dee01c5424
commit
7f7454b5e5
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# If there are images in _img/ that are not being used in the workspace, delete them
|
# If there are images in _img/ that are not being used in the workspace, delete them
|
||||||
find /home/thomas/repos/computer_science/_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
|
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##*/}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue