From 31e90a262053354d16e6ea5a049f529f35dcd354 Mon Sep 17 00:00:00 2001 From: Daniel Valentine Date: Tue, 27 Sep 2022 18:29:31 -0600 Subject: [PATCH] Remove -L from curl args so that it does not follow redirects. --- generate-instances-json.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generate-instances-json.sh b/generate-instances-json.sh index eeec459..2db1777 100755 --- a/generate-instances-json.sh +++ b/generate-instances-json.sh @@ -354,7 +354,7 @@ get () # Do the GET. Try up to the number of times specified in the tries variable. for (( i = tries; i > 0; i-- )) do - "${curl_cmd[@]}" -m"${timeout}" -fsL -- "${scheme}://${url_no_scheme}" + "${curl_cmd[@]}" -m"${timeout}" -fs -- "${scheme}://${url_no_scheme}" rc=$? if [[ ${rc} -eq 0 ]]