feat: Print curl error (#438)

* feat: Print curl error
This commit is contained in:
Kroese
2023-12-07 23:36:57 +01:00
committed by GitHub
parent ce6d60c611
commit a527080ccd
2 changed files with 2 additions and 2 deletions

View File

@@ -109,7 +109,7 @@ if [ ! -f "${RDC}" ]; then
VERIFY="b4215a4b213ff5154db0488f92c87864"
LOC="$DL/release/7.0.1/42218/DSM_VirtualDSM_42218.pat"
{ curl -r "$POS" -sfk -o "$RD" "$LOC"; rc=$?; } || :
{ curl -r "$POS" -sfk -S -o "$RD" "$LOC"; rc=$?; } || :
(( rc != 0 )) && error "Failed to download $LOC, reason: $rc" && exit 60
SUM=$(md5sum "$RD" | cut -f 1 -d " ")