Download fix

This commit is contained in:
DarkFeather
2017-11-01 13:40:02 -05:00
parent ff7aa509fa
commit 1fda9b2234
2 changed files with 2 additions and 2 deletions

View File

@@ -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