From 7487c2fcfc0525a5261a3b3b9ef75396e69766e4 Mon Sep 17 00:00:00 2001 From: "Dr. Jan-Philip Gehrcke" Date: Tue, 19 Aug 2025 13:37:31 +0200 Subject: [PATCH] build.sh: show curl errors -sSf or --silent --show-error --fail is a typical combination of curl cmdline flags to show useful output in CI and also have useful exit status. In my case, no root cause for curl failing was shown in the output of build.sh Through addition of -S I got to see: curl: (7) Failed to connect to ftp.gnu.org port 443 after 89 ms: Couldn't connect to server --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index b4ae825..164c77e 100755 --- a/build.sh +++ b/build.sh @@ -37,7 +37,7 @@ mycurl() { (($# == 2)) || return [[ -f ${1##*/} ]] || { echo "File: ${1##*/} | Url: ${1}" && curl -sLO "$1"; } [[ -f ${1##*/}.${2} || ${NO_SIGS:-} ]] || { - echo "File: ${1##*/}.${2} | Url: ${1}.${2}" && curl -sLO "${1}.${2}" + echo "File: ${1##*/}.${2} | Url: ${1}.${2}" && curl -sSfLO "${1}.${2}" gpg --trust-model always --verify "${1##*/}.${2}" "${1##*/}" 2>/dev/null } }