mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-02 02:29:58 +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() {
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue