Skip to content

Commit 09bce48

Browse files
committed
downloader [4.4.0 ~ 4.5.0] - fix close connection for zero urls.
shfmt formatted bash
1 parent 4acc8a8 commit 09bce48

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/dev/downloader.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ check_remote_vs_local() {
148148
finalurl() {
149149
local input_url="$1"
150150
local trimmed_url=$(echo "$input_url" | sed 's/[[:space:]]*$//')
151-
local resolved_url=$(curl -L -I --retry "${RETRY_MAX:-5}" --max-redirs "${MAX_REDIRECTS:-5}" --retry-connrefused --write-out '%{url_effective}' --silent --output /dev/null "$trimmed_url")
151+
local resolved_url=$(curl -L -I --retry "${RETRY_MAX:-5}" --max-redirs "${MAX_REDIRECTS:-5}" \
152+
--retry-connrefused --write-out '%{url_effective}' --silent --output /dev/null "$trimmed_url")
152153
if [[ -z "$resolved_url" ]]; then
153154
echoError "Failed to resolve URL: $trimmed_url"
154155
return 1
@@ -166,7 +167,7 @@ downloader() {
166167
NO_SSL=0
167168
COMPRESSION=1
168169
VERBOSE=0
169-
WGET2=0
170+
WGET2=1
170171
CURL=1
171172
WGET=1
172173
CLOSE_CONNECTION=1

0 commit comments

Comments
 (0)