Skip to content

Commit

Permalink
Make sure we only accept FJ_OFFICIAL_RELEASE=1
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-F-Bryan committed Jul 28, 2022
1 parent 0648cd6 commit d1e7467
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/fj-app/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ fn version_string() -> String {
let pkg_version = std::env::var("CARGO_PKG_VERSION").unwrap();
let commit = git_description();

let official_release = std::env::var("FJ_OFFICIAL_RELEASE").is_ok();
let official_release =
std::env::var("FJ_OFFICIAL_RELEASE").as_deref() == Ok("1");
println!("cargo:rerun-if-env-changed=FJ_OFFICIAL_RELEASE");

match (commit, official_release) {
Expand Down

0 comments on commit d1e7467

Please sign in to comment.