Correctly set environment, use SHELL in contain

This commit is contained in:
Jeremy Soller 2017-01-10 09:51:04 -07:00
parent 10bd3e860c
commit 4bff540aad
3 changed files with 3 additions and 3 deletions

View file

@ -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 {