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:
parent
565813b43e
commit
ae4693a155
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ sudo." | fold >&2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Download, ready, output
|
# Download, ready, output
|
||||||
mirrorlist=$(curl -s -L "$(make-url)")
|
mirrorlist=$(curl --no-progress-meter -L "$(make-url)")
|
||||||
|
|
||||||
if [[ $? -eq 0 ]]; then
|
if [[ $? -eq 0 ]]; then
|
||||||
echo "$mirrorlist" | sed 's/^#\([^#].*\)/\1/' > "$dest"
|
echo "$mirrorlist" | sed 's/^#\([^#].*\)/\1/' > "$dest"
|
||||||
|
|
Loading…
Reference in a new issue