From d5295a9f739f6553d21bffaa2ce6277b720c5676 Mon Sep 17 00:00:00 2001 From: Josh Bode Date: Sat, 20 Apr 2024 23:10:03 +1000 Subject: [PATCH] curl requires -q option to be first (#3) --- bin/list-all | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/list-all b/bin/list-all index 457b3bb..90b741b 100755 --- a/bin/list-all +++ b/bin/list-all @@ -17,7 +17,7 @@ URL=${RELEASES_PATH} # strip off the 'v' prefix as it causes issues with 'mise install foo latest' while [[ -n ${URL} ]]; do - RESULT=$(curl --include -qsSfL "$@" "${URL}") + RESULT=$(curl -qsSfL --include "$@" "${URL}") grep -o "${LINE_RE}" <<< "${RESULT}" if LINK=$(grep -m1 '^link: ' <<< "${RESULT}") && [[ ${LINK} =~ ${NEXT_LINK} ]]; then URL=${BASH_REMATCH[1]}