Download fix
This commit is contained in:
2
wolfpack
2
wolfpack
@@ -168,7 +168,7 @@ function download {
|
||||
if [ ! -f "$filename" ]; then
|
||||
echo Downloading $nexturl to $filename ... | tee -a "$logfile"
|
||||
export dedupterm="$(echo $1 | rev | cut -f 1 -d '/' | rev | cut -f 1 -d '.')"
|
||||
for i in $(find -type f "$downloaddir" | grep -i "$dedupterm"); do
|
||||
for i in $(find "$downloaddir" -type f | grep -i "$dedupterm"); do
|
||||
echo Deduped! Removed $i from $downloaddir | tee -a "$logfile"
|
||||
rm -f "$downloaddir"/"$i" 2>&1 | tee -a "$logfile"
|
||||
done
|
||||
|
Reference in New Issue
Block a user