Merge pull request #340 from ygxxii/patch-1

This commit is contained in:
Augusto Moura 2023-02-28 16:59:07 -03:00 committed by GitHub
commit 644ada3066
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,7 +99,7 @@ print_index_tab(){
curl_opts=(--header "If-None-Match: $(cat "$etag_file")")
fi
index=$(curl --fail --silent --dump-header "$temp_headers_file" ${curl_opts+"${curl_opts[@]}"} "${NODEJS_ORG_MIRROR}index.tab")
index=$(curl --fail --silent --location --dump-header "$temp_headers_file" ${curl_opts+"${curl_opts[@]}"} "${NODEJS_ORG_MIRROR}index.tab")
if [ "$index" ]; then
awk 'tolower($1) == "etag:" { print $2 }' < "$temp_headers_file" > "$etag_file"