Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,13 @@ read_email() {
fi

# Check if the email address is valid
if ! [[ $NOTIFICATION_EMAIL =~ ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$ ]]; then
echo "The email address you provided is not valid. Please try again."
read_email
fi
case $NOTIFICATION_EMAIL in
*@?*.?*) ;; # Valid pattern
*)
echo "The email address you provided is not valid. Please try again."
read_email
;;
esac
}

check_has_upgrade_notification_email() {
Expand Down
Loading