diff --git a/install-ngxblocker b/install-ngxblocker index 37b3977ba..d7289dc1e 100755 --- a/install-ngxblocker +++ b/install-ngxblocker @@ -166,7 +166,7 @@ wget_opts() { check_online() { local url=$1 options=$(wget_opts) - if wget $options $include_url &>/dev/null; then + if wget $options $url &>/dev/null; then echo "true" fi } @@ -190,6 +190,7 @@ main() { local tmp=$(mktemp) wget -q $include_url -O $tmp source $tmp 2>/dev/null + rm -f $tmp else printf "Repo down or missing: $include_url\n" exit 1