Relaxed email checking for installer

This commit is contained in:
Henric Andersson 2016-11-28 20:21:39 -08:00
commit 242946d37d

View file

@ -112,7 +112,7 @@ configure_plexupdate() {
PUBLIC=
while true; do
read -e -p "PlexPass Email Address: " -i "$EMAIL" EMAIL
if [ -z "$EMAIL" ] || [[ "$EMAIL" != *"@"*"."* ]]; then
if [ -z "${EMAIL}" ] || [[ "$EMAIL" == *"@"* ]] && [[ "$EMAIL" != *"@"*"."* ]]; then
echo "Please provide a valid email address"
else
break