Merge pull request #165 from itoffshore/alpine

fix grep regex range error
This commit is contained in:
Stuart Cardall 2018-04-17 22:55:44 +01:00 committed by GitHub
commit 85dd2f9a8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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