diff options
| author | Jae-Heon Ji <32578710+jaeheonji@users.noreply.github.com> | 2022-01-09 18:18:03 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-09 18:18:03 +0900 |
| commit | d2cfcb3babcd047eb86f8587cf6d640f1db462a0 (patch) | |
| tree | 5dcffedcb904ac6cf756452476751bdc66c0fb5e | |
| parent | docs(governance): add myself to governance (diff) | |
| download | sl0ppij-d2cfcb3babcd047eb86f8587cf6d640f1db462a0.tar.gz sl0ppij-d2cfcb3babcd047eb86f8587cf6d640f1db462a0.tar.xz sl0ppij-d2cfcb3babcd047eb86f8587cf6d640f1db462a0.zip | |
fix: add condition for existence of `current_dir` (#995)
| -rw-r--r-- | zellij-server/src/os_input_output.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/zellij-server/src/os_input_output.rs b/zellij-server/src/os_input_output.rs index f8fe751a..50add750 100644 --- a/zellij-server/src/os_input_output.rs +++ b/zellij-server/src/os_input_output.rs @@ -113,7 +113,9 @@ fn handle_openpty( let mut child = unsafe { let command = &mut Command::new(cmd.command); if let Some(current_dir) = cmd.cwd { - command.current_dir(current_dir); + if current_dir.exists() { + command.current_dir(current_dir); + } } command .args(&cmd.args) |
