mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-15 15:16:37 +00:00
Update ui.rs
After testing empty didn't work correctly Signed-off-by: pepa65 <pepa65@passchier.net>
This commit is contained in:
parent
266fac1339
commit
9f16c242c8
1 changed files with 2 additions and 2 deletions
|
@ -34,8 +34,8 @@ pub async fn confirm() -> Result<(), BinstallError> {
|
||||||
}
|
}
|
||||||
|
|
||||||
match input.as_str().trim() {
|
match input.as_str().trim() {
|
||||||
"" | "yes" | "y" | "YES" | "Y" => break false,
|
"yes" | "y" | "YES" | "Y" | "" => break true,
|
||||||
"no" | "n" | "NO" | "N" => break true,
|
"no" | "n" | "NO" | "N" => break false,
|
||||||
_ => {
|
_ => {
|
||||||
input.clear();
|
input.clear();
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue