|
@@ -183,7 +183,7 @@ delete() { if [ -z "${fulladdr+x}" ]; then |
|
|
askinfo() { \ |
|
|
askinfo() { \ |
|
|
[ -z "$fulladdr" ] && echo "Give the full email address to add:" && |
|
|
[ -z "$fulladdr" ] && echo "Give the full email address to add:" && |
|
|
read -r fulladdr |
|
|
read -r fulladdr |
|
|
while ! echo "$fulladdr" | grep -qE "^.+@.+\.[A-z]+$"; do |
|
|
|
|
|
|
|
|
while ! echo "$fulladdr" | grep -qE "^.+@.+\.[a-Z]+$"; do |
|
|
echo "\`$fulladdr\` is not a valid email address. Please retype the address:" |
|
|
echo "\`$fulladdr\` is not a valid email address. Please retype the address:" |
|
|
read -r fulladdr |
|
|
read -r fulladdr |
|
|
done |
|
|
done |
|
|