Last active
August 29, 2019 11:06
-
-
Save nickbabcock/c7bdc8e5974ed9956abf46ffd7dc13ff to your computer and use it in GitHub Desktop.
cross patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/docker.rs b/src/docker.rs | |
index 99a4883..84883fd 100644 | |
--- a/src/docker.rs | |
+++ b/src/docker.rs | |
@@ -62,7 +62,7 @@ pub fn register(target: &Target, verbose: bool) -> Result<()> { | |
docker_command("run") | |
.arg("--privileged") | |
.arg("--rm") | |
- .arg("-it") | |
+ .arg("-i") | |
.arg("ubuntu:16.04") | |
.args(&["sh", "-c", cmd]) | |
.run(verbose) | |
@@ -160,7 +160,7 @@ pub fn run(target: &Target, | |
.args(&["-v", &format!("{}:/rust:Z,ro", sysroot.display())]) | |
.args(&["-v", &format!("{}:/target:Z", target_dir.display())]) | |
.args(&["-w", "/project"]) | |
- .args(&["-it", &image(toml, target)?]) | |
+ .args(&["-i", &image(toml, target)?]) | |
.args(&["sh", "-c", &format!("PATH=$PATH:/rust/bin {:?}", cmd)]) | |
.run_and_get_status(verbose) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment