fix grep regex range error

* fixes grep: Invalid range end ERROR

* https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/issues/86#issuecomment-381918868
This commit is contained in:
Stuart Cardall 2018-04-17 21:26:04 +00:00
parent 74212d1076
commit 67888380bc
No known key found for this signature in database
GPG key ID: AEB857F1C891D0C6

View file

@ -188,7 +188,7 @@ check_args() {
exit 1
fi
;;
email) if ! echo $arg | grep -E ^[+-_\.[:alnum:]]+@[-_\.[:alnum:]]+ 1>/dev/null; then
email) if ! echo $arg | grep -E ^[-+_\.[:alnum:]]+@[-_\.[:alnum:]]+ 1>/dev/null; then
printf "$msg email@domain.com\n"
exit 1
fi