summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaa <kaa@disroot.org>2025-05-18 17:00:33 -0700
committerkaa <kaa@disroot.org>2025-05-18 17:00:33 -0700
commitdd7c990688588d7d26dce0f9d165c97ddfba39f2 (patch)
treef3554d7f791c7c7d033470b147a04e6b715c8108
parent924e5b4cd70155e5022dfcc9e38341217da3973d (diff)
Junk header passing fixed
-rwxr-xr-xconcurrent_dl.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/concurrent_dl.sh b/concurrent_dl.sh
index f334e8e..a824514 100755
--- a/concurrent_dl.sh
+++ b/concurrent_dl.sh
@@ -26,7 +26,11 @@ dl_safe()
}
strip_path()
{
- sed -e 's|.*/||'
+ sed -e 's|.*/|page/|'
+ if ! [ -d page ]
+ then
+ mkdir page
+ fi
}
concurrent_dl()
{
@@ -60,7 +64,7 @@ concurrent_dl()
o=$(echo "$url" | $filter)
if ! [ -f $o ]
then
- dl_safe $o $url Ûheader &
+ dl_safe $o $url $headers &
pids="$pids $!"
fi
j=$((j+1))