mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-25 14:05:41 -05:00
Avoid unwrap when determining proper shell to use
This commit is contained in:
parent
a01ef5568f
commit
7ed4f205ad
1 changed files with 4 additions and 1 deletions
|
@ -208,7 +208,10 @@ fn execsh(config: &Config) -> ! {
|
|||
let pw = get_pw_entry(&mut buf);
|
||||
|
||||
let shell = match config.shell() {
|
||||
Some(shell) => shell.to_str().unwrap(),
|
||||
Some(shell) => match shell.to_str() {
|
||||
Some(shell) => shell,
|
||||
None => die!("Invalid shell value")
|
||||
},
|
||||
None => pw.shell
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue