Correctly set environment, use SHELL in contain
This commit is contained in:
parent
10bd3e860c
commit
4bff540aad
3 changed files with 3 additions and 3 deletions
|
@ -132,7 +132,7 @@ pub fn main() {
|
|||
usage();
|
||||
},
|
||||
"enter" => if let Some(root) = args.next() {
|
||||
let cmd = args.next().unwrap_or("sh".to_string());
|
||||
let cmd = args.next().unwrap_or(env::var("SHELL").unwrap_or("sh".to_string()));
|
||||
let args: Vec<String> = args.collect();
|
||||
enter(Path::new(&root), &cmd, &args);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue