mirror of
https://github.com/asdf-vm/asdf-nodejs.git
synced 2024-10-05 23:32:09 +08:00
Merge pull request #340 from ygxxii/patch-1
This commit is contained in:
commit
644ada3066
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user