Skip to content

Commit

Permalink
curl requires -q option to be first (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbode authored Apr 20, 2024
1 parent c42f919 commit d5295a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/list-all
Original file line number Diff line number Diff line change
Expand Up @@ -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]}
Expand Down

0 comments on commit d5295a9

Please sign in to comment.