added broken link removal and refined report

This commit is contained in:
Stefen Auris 2023-03-25 05:34:32 -04:00
parent cb5ccc1291
commit ce17172663

View file

@ -1,9 +1,10 @@
#!/bin/bash #!/bin/bash
N=6 N=6
df > ~/before_df.txt before=$(df | grep -i picture)
cd $HOME/gallery-dl/twitter cd $HOME/gallery-dl/twitter
for i in */; do for i in */; do
echo ">> $i" echo ">> $i"
(find -L "$i" -type l -delete) &
(jdupes -LN $i) & (jdupes -LN $i) &
if [[ $(jobs -r -p | wc -l) -ge $N ]]; then if [[ $(jobs -r -p | wc -l) -ge $N ]]; then
wait -n wait -n
@ -11,6 +12,7 @@ for i in */; do
done done
wait wait
echo "======COMPLETE=======" echo "======COMPLETE======="
echo "Before:" echo "Before:"
cat ~/before_df.txt echo $before
df echo "After:"
df | grep -i picture