mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-02 10:40:36 +00:00
install-ngxblocker: 2 small fixes
This commit is contained in:
parent
f6a4a174b3
commit
a8b0ae8399
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue