From 04fb5ca175e92c3250cd266e5a116682a438c36c Mon Sep 17 00:00:00 2001 From: alarig Date: Mon, 6 May 2019 11:09:39 +0200 Subject: [PATCH] Use a correct email regex, only @ il mendatory --- deploy_vm.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy_vm.sh b/deploy_vm.sh index 88803e0..01a584c 100755 --- a/deploy_vm.sh +++ b/deploy_vm.sh @@ -92,8 +92,8 @@ fi echo "INFO : Check USER_MAIL param format..." # Check USER_MAIL -if [[ ! "${USER_MAIL}" =~ ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$ ]]; then - echo 'ERROR : Email address is invalid' +if [[ ! "${USER_MAIL}" =~ ^(.*)+@(.*)$ ]]; then + echo 'ERROR: Email address is invalid' exit 1 fi