Skip to content

Commit

Permalink
Merge pull request #767 from rust-lang-nursery/db-empty-cargodir
Browse files Browse the repository at this point in the history
Treat an empty `CARGO_HOME` the same as an unset `CARGO_HOME`
  • Loading branch information
brson authored Oct 21, 2016
2 parents d32ae1a + 49d6606 commit e88d503
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rustup-utils/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,8 @@ pub fn cargo_home() -> Result<PathBuf> {
let env_var = if let Some(v) = env_var {
let vv = v.to_string_lossy().to_string();
if vv.contains(".multirust/cargo") ||
vv.contains(r".multirust\cargo") {
vv.contains(r".multirust\cargo") ||
vv.trim().is_empty() {
None
} else {
Some(v)
Expand Down

0 comments on commit e88d503

Please sign in to comment.