From 058308ae54d8034233cc9530ea79f4e76e6d5c8b Mon Sep 17 00:00:00 2001 From: mrshmllow Date: Thu, 8 Sep 2022 20:19:13 +1000 Subject: [PATCH] properly unwrap bin.sudo --- src/internal/commands.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal/commands.rs b/src/internal/commands.rs index ad5a5dd..a8791ad 100644 --- a/src/internal/commands.rs +++ b/src/internal/commands.rs @@ -51,7 +51,7 @@ impl ShellCommand { } pub fn sudo() -> Self { - Self::new(&config::read().bin.sudo.unwrap_or_default()) + Self::new(config::read().bin.sudo.unwrap_or("sudo".to_string())) } pub fn rm() -> Self {