We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6eb2d05 commit 15f8111Copy full SHA for 15f8111
dsc_lib/src/discovery/command_discovery.rs
@@ -66,16 +66,16 @@ impl CommandDiscovery {
66
if !using_custom_path {
67
if let Some(exe_home) = env::current_exe()?.parent() {
68
let exe_home_pb = exe_home.to_path_buf();
69
- if !paths.contains(&exe_home_pb) {
+ if paths.contains(&exe_home_pb) {
70
+ trace!("Exe home is already in path: {}", exe_home.to_string_lossy());
71
+ } else {
72
trace!("Adding exe home to path: {}", exe_home.to_string_lossy());
73
paths.push(exe_home_pb);
74
75
if let Ok(new_path) = env::join_paths(paths.clone()) {
76
debug!("Using PATH: {:?}", new_path.to_string_lossy());
77
env::set_var("PATH", &new_path);
78
}
- } else {
- trace!("Exe home is already in path: {}", exe_home.to_string_lossy());
79
80
81
};
0 commit comments