fix -i option

This commit is contained in:
Stuart Cardall 2018-03-11 13:19:31 +00:00
parent 3850507195
commit ea0193f1c4
No known key found for this signature in database
GPG key ID: AEB857F1C891D0C6

View file

@ -67,9 +67,9 @@ Examples:
$script -c /my/custom/conf.d (Download globalblacklist.conf to a custom location) $script -c /my/custom/conf.d (Download globalblacklist.conf to a custom location)
$script -b /my/custom/bots.d (Download globalblacklist.conf & update with your custom bots.d location) $script -b /my/custom/bots.d (Download globalblacklist.conf & update with your custom bots.d location)
$script -e you@youremail.com (Download globalblacklist.conf specifying your email address for the notification) $script -e you@youremail.com (Download globalblacklist.conf specifying your email address for the notification)
$script -u /path/to/install-ngxblocker (Use custom path to install-ngxblocker to update bots.d / conf.d include files)
$script -q -m webmaster (Send mail to a system alias address & give less verbose messages for cron) $script -q -m webmaster (Send mail to a system alias address & give less verbose messages for cron)
$script -o -e you@youremail.com (Send mail notification only on updates) $script -o -e you@youremail.com (Send mail notification only on updates)
$script -i /path/to/install-ngxblocker (Use custom path to install-ngxblocker to update bots.d / conf.d include files)
EOF EOF
exit 0 exit 0
} }
@ -250,7 +250,7 @@ send_email() {
get_options() { get_options() {
local arg= opts= local arg= opts=
while getopts :c:b:u:r:e:m:novqh opts "$@" while getopts :c:b:i:r:e:m:novqh opts "$@"
do do
if [ -n "${OPTARG}" ]; then if [ -n "${OPTARG}" ]; then
case "$opts" in case "$opts" in