Skip to content

Commit

Permalink
Remove path modification from .bash_profile
Browse files Browse the repository at this point in the history
  • Loading branch information
awelkie authored and brson committed Jun 24, 2017
1 parent 744db3e commit a947d66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rustup-cli/self_update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1178,8 +1178,9 @@ fn get_remove_path_methods() -> Result<Vec<PathUpdateMethod>> {
}

let profile = utils::home_dir().map(|p| p.join(".profile"));
let bash_profile = utils::home_dir().map(|p| p.join(".bash_profile"));

let rcfiles = vec![profile];
let rcfiles = vec![profile, bash_profile];
let existing_rcfiles = rcfiles.into_iter()
.filter_map(|f|f)
.filter(|f| f.exists());
Expand Down

0 comments on commit a947d66

Please sign in to comment.