From 9f16c242c8cf36880e61df973610b3716f520fe5 Mon Sep 17 00:00:00 2001
From: pepa65 <pepa65@passchier.net>
Date: Wed, 30 Oct 2024 19:40:32 +0700
Subject: [PATCH] Update ui.rs

After testing empty didn't work correctly

Signed-off-by: pepa65 <pepa65@passchier.net>
---
 crates/bin/src/ui.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/crates/bin/src/ui.rs b/crates/bin/src/ui.rs
index 5c3474eb..bcbb67e1 100644
--- a/crates/bin/src/ui.rs
+++ b/crates/bin/src/ui.rs
@@ -34,8 +34,8 @@ pub async fn confirm() -> Result<(), BinstallError> {
             }
 
             match input.as_str().trim() {
-                "" | "yes" | "y" | "YES" | "Y" => break false,
-                "no" | "n" | "NO" | "N" => break true,
+                "yes" | "y" | "YES" | "Y" | "" => break true,
+                "no" | "n" | "NO" | "N" => break false,
                 _ => {
                     input.clear();
                     continue;