From ae4693a15578d5965a74def4eb8615d6034aef6a Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sat, 18 Jun 2022 20:59:10 -0700 Subject: [PATCH] =?UTF-8?q?Show=20error=20messages=20generated=20by=20?= =?UTF-8?q?=E2=80=98curl=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- update-mirrors | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update-mirrors b/update-mirrors index 8cf158f..4035fea 100755 --- a/update-mirrors +++ b/update-mirrors @@ -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"