diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/build.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/build.rs b/src/build.rs index 7c3f12d..d2fb8e2 100644 --- a/src/build.rs +++ b/src/build.rs @@ -9,15 +9,14 @@ fn main() -> Result<()> { .output() .unwrap(); - if std::env::var("out").is_err() { - println!("cargo:rustc-env=out=/yolo"); - } + let out = std::env::var("out").unwrap_or("/fake".into()); + println!("cargo:rustc-env=out={}", out); let git_hash = String::from_utf8(output.stdout).unwrap(); println!( "cargo:rustc-env=GITHUB_SHA={}", if git_hash.as_str() == "" { - env!("out").into() + out.into() } else { git_hash } |
