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 9290529 commit b856df8Copy full SHA for b856df8
src/command/setup.rs
@@ -45,11 +45,14 @@ mod os {
45
46
// Don't update the user's shell config files if VOLTA_HOME and PATH already contain what we need.
47
let home_in_path = match env::var_os("PATH") {
48
- Some(paths) => env::split_paths(&paths).find(|p| p == home.shim_dir()),
49
- None => None
+ Some(paths) => env::split_paths(&paths).find(|p| p == home.root()),
+ None => None,
50
};
51
52
if env::var_os("VOLTA_HOME").is_some() && home_in_path.is_some() {
53
+ debug!(
54
+ "{} skipping dot-file modification as VOLTA_HOME is set, and included in the PATH."
55
+ );
56
return Ok(());
57
}
58
0 commit comments