Skip to content

Commit 3334d80

Browse files
gmishkinstennie
authored andcommitted
allow curl errors to bubble up to the terminal to help troubleshoot
not handling wget right now because curl is more common so will be preferred also because wget's -nv option still prints a basic success message
1 parent 21550cf commit 3334d80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ GET=
107107
which wget >/dev/null 2>&1 && GET="wget -q -O-"
108108

109109
# curl support
110-
which curl >/dev/null 2>&1 && GET="curl -s -L"
110+
which curl >/dev/null 2>&1 && GET="curl -s -S -L"
111111

112112
# Ensure we have curl or wget
113113

@@ -208,7 +208,7 @@ get_all_versions() {
208208

209209
if [ -z "$all_versions" ]; then
210210
debug "get_all_versions(): $GET $src_url"
211-
all_versions=`$GET 2> /dev/null $src_url`
211+
all_versions=`$GET $src_url`
212212
if [ $CACHE ]; then
213213
debug "Creating cache: $CACHE_SRC"
214214
echo "$all_versions" > $CACHE_SRC

0 commit comments

Comments
 (0)