summaryrefslogtreecommitdiffstats
path: root/src/ui.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ui.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ui.rs b/src/ui.rs
index 9931a7d..1ffe34c 100644
--- a/src/ui.rs
+++ b/src/ui.rs
@@ -307,8 +307,10 @@ impl Approver {
307 return true; 307 return true;
308 } 308 }
309 // Bash prompts every call by design, so "always" is not offered here. 309 // Bash prompts every call by design, so "always" is not offered here.
310 self.ask(&format!("run: {}", crate::provider::truncate(cmd, 200)), false) 310 self.ask(
311 == Answer::Yes 311 &format!("run: {}", crate::provider::truncate(cmd, 200)),
312 false,
313 ) == Answer::Yes
312 } 314 }
313} 315}
314 316