From dd7c990688588d7d26dce0f9d165c97ddfba39f2 Mon Sep 17 00:00:00 2001 From: kaa Date: Sun, 18 May 2025 17:00:33 -0700 Subject: Junk header passing fixed --- concurrent_dl.sh | 8 ++++++-- 1 file 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)) -- cgit v1.2.3