mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2026-11-11 16:49:30 +01:00
Display exit code
This commit is contained in:
1 parent
9a16ba85dd
commit
c80315c8b7
1 file changed
+2
-3
+2
-3
@@ -69,9 +69,8 @@ else
|
||||
PROGRESS="--progress=dot:giga"
|
||||
fi
|
||||
|
||||
if ! wget "$URL" -O "$PAT" -q --no-check-certificate --show-progress "$PROGRESS"; then
|
||||
echo "ERROR: Failed to download $URL" && exit 69
|
||||
fi
|
||||
{ wget "$URL" -O "$PAT" -q --no-check-certificate --show-progress "$PROGRESS"; rc=$?; } || :
|
||||
(( rc != 0 )) && echo "ERROR: Failed to download $URL, reason: $rc" && exit 69
|
||||
|
||||
[ ! -f "$PAT" ] && echo "ERROR: Failed to download $URL" && exit 69
|
||||
|
||||
|
||||
Reference in new issue
Block a user