From b8963e2eecc7fc2018a62f3b34ae9bc30d8fc67d Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sun, 2 May 2021 18:39:57 +0000 Subject: [PATCH] bugfix: invert download check --- _webi/template.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_webi/template.sh b/_webi/template.sh index 2fff936..adbc3e9 100644 --- a/_webi/template.sh +++ b/_webi/template.sh @@ -170,7 +170,7 @@ function __bootstrap_webi() { if [[ $- == *i* ]]; then my_show_progress="--show-progress" fi - if wget -q $my_show_progress --user-agent="wget $WEBI_UA" -c "$my_url" -O "$my_dl.part"; then + if ! wget -q $my_show_progress --user-agent="wget $WEBI_UA" -c "$my_url" -O "$my_dl.part"; then echo >&2 "failed to download from $WEBI_PKG_URL" exit 1 fi -- 2.25.1