pty: actually return the shell we found

this was masked for me because my dotfiles have a special case
to run zsh when launching sh as a login shell. doh!

refs: https://github.com/wez/wezterm/issues/2469
This commit is contained in:
Wez Furlong committed 2022-09-01 05:24:05 -07:00
1 parent 7670c4f0ae
commit 9082c79b34
1 file changed
+2
+2
View File
@@ -477,6 +477,8 @@ impl CommandBuilder {
"passwd database shell={shell:?} which is \
not executable ({err:#}), fallback to /bin/sh"
);
} else {
return Ok(shell)
}
}
Ok("/bin/sh".into())