install-ngxblocker: 2 small fixes

This commit is contained in:
Stuart Cardall 2017-04-21 22:01:55 +00:00
parent f6a4a174b3
commit a8b0ae8399

View file

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