From 405b456d4b1137ca71ab0eac5727e88cb03e3d53 Mon Sep 17 00:00:00 2001 From: Amr Bashir Date: Tue, 1 Aug 2023 04:35:26 +0300 Subject: [PATCH] Update plugins/shell/src/process/mod.rs --- plugins/shell/src/process/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/shell/src/process/mod.rs b/plugins/shell/src/process/mod.rs index b891c4c9..3c5556c9 100644 --- a/plugins/shell/src/process/mod.rs +++ b/plugins/shell/src/process/mod.rs @@ -113,7 +113,7 @@ pub struct Output { fn relative_command_path(command: &Path) -> crate::Result { match platform::current_exe()?.parent() { #[cfg(windows)] - Some(exe_dir) => Ok(exe_dir.join(format!("{command}.exe"))), + Some(exe_dir) => Ok(exe_dir.join(command).with_extension("exe"), #[cfg(not(windows))] Some(exe_dir) => Ok(exe_dir.join(command)), None => Err(crate::Error::CurrentExeHasNoParent),