Commit 4cfc0f2a authored by anarcat's avatar anarcat

1128844 do not prompt-loop over email if -y

parent 30996aea
......@@ -50,7 +50,7 @@ Don't worry: you will get to review those settings after the final install");
} else {
$default_email = 'webmaster@' . drush_get_option('aegir_host');
while (!filter_var(drush_get_option('client_email'), FILTER_VALIDATE_EMAIL)) {
while (!filter_var(drush_get_option('client_email'), FILTER_VALIDATE_EMAIL) && !drush_get_context('DRUSH_AFFIRMATIVE')) {
$client_email = drush_prompt(dt("Admin user e-mail"), $default_email);
drush_set_option('client_email', $client_email);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment