From 3c27255c5b21fab72ece011ebd52695fbbba5cae Mon Sep 17 00:00:00 2001 From: Nathan Fisher Date: Tue, 17 Jan 2023 17:39:50 -0500 Subject: [PATCH] Fix previous fix - doh! --- src/cmd/rm/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/rm/mod.rs b/src/cmd/rm/mod.rs index c4688d7..c90c059 100644 --- a/src/cmd/rm/mod.rs +++ b/src/cmd/rm/mod.rs @@ -321,7 +321,7 @@ impl AllActions { let mut reply = String::new(); let stdin = io::stdin(); let _read = stdin.read_line(&mut reply); - match reply.as_str() { + match reply.trim_end() { "y" | "Y" | "yes" | "Yes" => true, _ => false, }