Skip to content

Commit

Permalink
Use POSIX-compliant . instead of source in .profile
Browse files Browse the repository at this point in the history
The invocation to `source` introduced in 850adef is not POSIX-compliant,
and not available in some shells. Use `.` instead, which will work in
all shells. Concretely, this was failing in Docker builds, where
`/bin/sh` is not Bash.
  • Loading branch information
Xyene committed Dec 20, 2020
1 parent 50fbbeb commit 594913b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/self_update/shell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ pub trait UnixShell {
}

fn source_string(&self) -> Result<String> {
Ok(format!(r#"source "{}/env""#, cargo_home_str()?))
Ok(format!(r#". "{}/env""#, cargo_home_str()?))
}
}

Expand Down

0 comments on commit 594913b

Please sign in to comment.