Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
nmanoogian committed Jun 7, 2024
1 parent 9470fb8 commit fa0fbfa
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,16 @@ curl_download() {
output_file="$2"
component="$3"

h=$(curl --tlsv1.2 --proto "=https" -w "%{response_code}" --retry 5 -o "$output_file" -LN -D - https://example.com 2>&1)
exit_code=$?
log_debug "$h"
log_debug "Exit: $exit_code"

log_debug "BREAK"

# 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

Expand Down

0 comments on commit fa0fbfa

Please sign in to comment.