summaryrefslogtreecommitdiffstats
path: root/zellij-server
diff options
context:
space:
mode:
authorNuno David <74260683+ndavd@users.noreply.github.com>2022-12-13 12:06:20 +0000
committerGitHub <noreply@github.com>2022-12-13 12:06:20 +0000
commit8eb6446b3f0ab1037c9563407f6c2f647d51a9a3 (patch)
treeb4439fe496d2e260e3efd20954093c22db0310a7 /zellij-server
parent685e39bd9bd9c589ff779d71ea24f30ed7257f93 (diff)
Fix: Remove shell.exists() check from get_default_terminal (#2013)
* Fix: Make sure to get full path from SHELL env * Feat: Revert to previous get_default_terminal and just remove shell exists check
Diffstat (limited to 'zellij-server')
-rw-r--r--zellij-server/src/pty.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/zellij-server/src/pty.rs b/zellij-server/src/pty.rs
index e81ef5b26..9f4cd3e35 100644
--- a/zellij-server/src/pty.rs
+++ b/zellij-server/src/pty.rs
@@ -448,9 +448,6 @@ impl Pty {
log::warn!("Cannot read SHELL env, falling back to use /bin/sh");
"/bin/sh".to_string()
}));
- if !shell.exists() {
- panic!("Cannot find shell {}", shell.display());
- }
TerminalAction::RunCommand(RunCommand {
args: vec![],
command: shell,