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