From a8b0ae83995108d5f7c6154b6c060a2ed6b0ea30 Mon Sep 17 00:00:00 2001 From: Stuart Cardall Date: Fri, 21 Apr 2017 22:01:55 +0000 Subject: [PATCH] install-ngxblocker: 2 small fixes --- install-ngxblocker | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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