Update plugins/shell/src/process/mod.rs

pull/526/head
Amr Bashir 2 years ago committed by GitHub
parent b4493a24ad
commit 405b456d4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -113,7 +113,7 @@ pub struct Output {
fn relative_command_path(command: &Path) -> crate::Result<PathBuf> {
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),

Loading…
Cancel
Save