diff options
author | qkzk <qu3nt1n@gmail.com> | 2023-04-11 17:45:13 +0200 |
---|---|---|
committer | qkzk <qu3nt1n@gmail.com> | 2023-04-11 17:45:13 +0200 |
commit | 46be68424e70672e33be2976b4e5a0bd54d2e0c8 (patch) | |
tree | 8d02e20367b7f09330e1774c6bda69df0fe073b0 /src/event_exec.rs | |
parent | 56cdd9821560ae724688191e62f70bcafd98c11e (diff) |
allow generic types for executable in execute commands
Diffstat (limited to 'src/event_exec.rs')
-rw-r--r-- | src/event_exec.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/event_exec.rs b/src/event_exec.rs index 6857278..7af037c 100644 --- a/src/event_exec.rs +++ b/src/event_exec.rs @@ -366,7 +366,7 @@ impl EventExec { let Ok(executable) = which::which(executable) else { return Ok(()); }; let params: Vec<&str> = args.iter().map(|s| s.as_str()).collect(); execute_in_child_without_output_with_path( - executable.to_str().context("Couldn't parse the path")?, + executable, tab.directory_of_selected()?, Some(¶ms), )?; @@ -1989,7 +1989,7 @@ impl EventExec { let mut args = parser.compute(status)?; let command = args.remove(0); let args: Vec<&str> = args.iter().map(|s| &**s).collect(); - let output = execute_and_capture_output_without_check(&command, &args)?; + let output = execute_and_capture_output_without_check(command, &args)?; info!("output {output}"); Ok(()) } |