1
0
Fork 0

Show error messages generated by ‘curl’

The ‘-s’ switch makes ‘curl’ completely silent, even on error messages. So when
it fails it doesn't tell us why.

The ‘--no-progress-meter’ disables the normal progress meter output so that when
everything succeeds, there is no output, but when there is a failure we still
get to see what that is.
This commit is contained in:
Tom Willemse 2022-06-18 20:59:10 -07:00
parent 565813b43e
commit ae4693a155

View file

@ -65,7 +65,7 @@ sudo." | fold >&2
fi
# Download, ready, output
mirrorlist=$(curl -s -L "$(make-url)")
mirrorlist=$(curl --no-progress-meter -L "$(make-url)")
if [[ $? -eq 0 ]]; then
echo "$mirrorlist" | sed 's/^#\([^#].*\)/\1/' > "$dest"