diff options
| author | kaa <kaa@disroot.org> | 2025-05-18 17:00:33 -0700 | 
|---|---|---|
| committer | kaa <kaa@disroot.org> | 2025-05-18 17:00:33 -0700 | 
| commit | dd7c990688588d7d26dce0f9d165c97ddfba39f2 (patch) | |
| tree | f3554d7f791c7c7d033470b147a04e6b715c8108 | |
| parent | 924e5b4cd70155e5022dfcc9e38341217da3973d (diff) | |
Junk header passing fixed
| -rwxr-xr-x | concurrent_dl.sh | 8 | 
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))  | 
