From 6cf65259f07d116dd277ffb944522107e1e55fe7 Mon Sep 17 00:00:00 2001 From: ShaneTheAwesome Date: Tue, 12 Nov 2019 22:45:42 +0400 Subject: [PATCH] Error check for wget --- update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update.sh b/update.sh index 8d878de..2e09eee 100755 --- a/update.sh +++ b/update.sh @@ -126,7 +126,7 @@ for object in $(echo "$stuff_download" | awk '{ print $1 }'); do objectname="$(basename "$objecturl")"; objectfile="$tmpdir/$objectname"; echo " ---- Downloading $objecturl to $objectfile"; - wget -q --show-progress "$objecturl" -O "$objectfile"; + wget -q --show-progress "$objecturl" -O "$objectfile" || { echo "ERROR: $object failed to download"; continue; } [ -f "$objectfile" ] || { echo "ERROR: $object failed to download"; continue; } ;; esac;