Bring back the default option for retry (fix #159)

This commit is contained in:
Roey Darwish Dror
2019-05-27 10:35:51 +03:00
parent afaa4a4939
commit a3af9144ae

View File

@@ -104,7 +104,7 @@ impl Terminal {
.write_fmt(format_args!( .write_fmt(format_args!(
"\n{}", "\n{}",
style(format!( style(format!(
"Retry? (Y)es/(N)o/(S)hell {}", "Retry? (y)es/(N)o/(s)hell {}",
if interrupted { if interrupted {
"(Press Ctrl+C again to stop Topgrade) " "(Press Ctrl+C again to stop Topgrade) "
} else { } else {
@@ -124,7 +124,7 @@ impl Terminal {
Command::new(shell()).spawn().unwrap().wait().unwrap(); Command::new(shell()).spawn().unwrap().wait().unwrap();
break Ok(true); break Ok(true);
} }
'n' | 'N' => break Ok(false), 'n' | 'N' | '\r' | '\n' => break Ok(false),
_ => (), _ => (),
} }
}; };