diff --git a/scripts/install.sh b/scripts/install.sh index c35a2c85..8fe103d7 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -144,9 +144,12 @@ curl_download() { output_file="$2" component="$3" + h=$(curl -w '%{response_code}' -o file https://example.com) + log_debug "$h" + # allow curl to fail w/o exiting set +e - headers=$(curl --tlsv1.2 --proto "=https" -w "%{http_code}" --silent --retry 5 -o "$output_file" -LN -D - "$url" 2>&1) + headers=$(curl --tlsv1.2 --proto "=https" -w "%{response_code}" --retry 5 -o "$output_file" -LN -D - "$url" 2>&1) exit_code=$? set -e