From 4e77b84d1cdf2d52f5090368ffe7c92f71c3f61b Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 21 Apr 2023 12:10:33 +0200 Subject: [PATCH] Curl --- run/install.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/run/install.sh b/run/install.sh index f0a2cce..f7ae812 100644 --- a/run/install.sh +++ b/run/install.sh @@ -29,9 +29,8 @@ rm -rf "$TMP" && mkdir -p "$TMP" LOC="$DL/release/7.0.1/42218/DSM_VirtualDSM_42218.pat" -if ! curl -r 64493568-69886247 -sfk -o "$RD" "$LOC"; then - echo "Failed to download extractor, code: $?" && exit 60 -fi +{ curl -r 64493568-69886247 -sfk -o "$RD" "$LOC"; rc=$?; } || : +(( rc != 0 )) && echo "Failed to download extractor, reason: $rc" && exit 60 SUM=$(md5sum "$RD" | cut -f 1 -d " ")