Fix retry in Windows (fix #69)

This commit is contained in:
Roey Darwish Dror
2018-09-14 13:30:45 +03:00
parent 9fac046f20
commit 588f76828f

View File

@@ -83,9 +83,9 @@ impl Terminal {
let _ = self.stdout.flush();
if stdin().read_line(&mut result).is_ok() {
match result.as_str() {
"y\n" | "Y\n" => return true,
"n\n" | "N\n" | "\n" => return false,
match result.as_str().trim() {
"y" | "Y" => return true,
"n" | "N" | "" => return false,
_ => (),
}
} else {