Bring back the default option for retry (fix #159)
This commit is contained in:
@@ -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),
|
||||||
_ => (),
|
_ => (),
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user