added broken link removal and refined report
This commit is contained in:
parent
cb5ccc1291
commit
ce17172663
1 changed files with 6 additions and 4 deletions
|
@ -1,9 +1,10 @@
|
|||
#!/bin/bash
|
||||
N=6
|
||||
df > ~/before_df.txt
|
||||
before=$(df | grep -i picture)
|
||||
cd $HOME/gallery-dl/twitter
|
||||
for i in */; do
|
||||
echo ">> $i"
|
||||
(find -L "$i" -type l -delete) &
|
||||
(jdupes -LN $i) &
|
||||
if [[ $(jobs -r -p | wc -l) -ge $N ]]; then
|
||||
wait -n
|
||||
|
@ -11,6 +12,7 @@ for i in */; do
|
|||
done
|
||||
wait
|
||||
echo "======COMPLETE======="
|
||||
echo "Before:"
|
||||
cat ~/before_df.txt
|
||||
df
|
||||
echo "Before:"
|
||||
echo $before
|
||||
echo "After:"
|
||||
df | grep -i picture
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue