summaryrefslogtreecommitdiff
path: root/lang/rust-nightly/files/patch-src_bootstrap_install.rs
blob: ac89792be1f9191d5beb135325f14238436995ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
https://github.com/rust-lang/rust/issues/74545

--- src/bootstrap/install.rs.orig	2020-07-20 14:00:24 UTC
+++ src/bootstrap/install.rs
@@ -112,9 +112,14 @@ fn install_sh(
         pkgname(builder, name)
     };
 
+    let install_script = tmpdir(builder).join(&package_name).join("install.sh");
+    if !install_script.exists() {
+        return;
+    }
+
     let mut cmd = Command::new("sh");
     cmd.current_dir(&empty_dir)
-        .arg(sanitize_sh(&tmpdir(builder).join(&package_name).join("install.sh")))
+        .arg(sanitize_sh(&install_script))
         .arg(format!("--prefix={}", sanitize_sh(&prefix)))
         .arg(format!("--sysconfdir={}", sanitize_sh(&sysconfdir)))
         .arg(format!("--datadir={}", sanitize_sh(&datadir)))