Skip to content

Commit

Permalink
Use proper curl option to ignore .curlrc
Browse files Browse the repository at this point in the history
  • Loading branch information
rasa committed Oct 24, 2023
1 parent a837fb5 commit c09b980
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion upgrade.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
#!/usr/bin/env bash
# shellcheck disable=SC2312 # (info): Consider invoking this command separately to avoid masking its return value (or use '|| true' to ignore).

set -e

if command -v curl >/dev/null; then
dl="curl -s -K /dev/null"
# -sq == --silent --disable
dl="curl -sq"
else
# -q0 == --quiet --output-document
dl='wget --no-config -qO -'
fi

Expand Down

0 comments on commit c09b980

Please sign in to comment.