Skip to content

Commit b856df8

Browse files
committed
Add debug!() and cargo fmt.
1 parent 9290529 commit b856df8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/command/setup.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,14 @@ mod os {
4545

4646
// Don't update the user's shell config files if VOLTA_HOME and PATH already contain what we need.
4747
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
48+
Some(paths) => env::split_paths(&paths).find(|p| p == home.root()),
49+
None => None,
5050
};
5151

5252
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+
);
5356
return Ok(());
5457
}
5558

0 commit comments

Comments
 (0)