bugfix: invert download check

This commit is contained in:
AJ ONeal
2021-05-02 18:39:57 +00:00
parent 40e4c9325e
commit b8963e2eec

View File

@@ -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