summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 4c7c49a..5f73a15 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -64,14 +64,14 @@ fn eval(paths: &[&str], prompt: &str) {
Some(str) => str,
None => env!("HOME"),
};
+
match std::env::set_current_dir(path) {
- Ok(_) => {}
+ Ok(_) => continue,
Err(_) => {
println!("cd: Unable to change into {}", path);
continue;
}
}
- continue;
}
// Check if the command exists