Require 1 instead of boolean for PACWRAP_SCHEMA_BUILT
All checks were successful
Build / Check format (push) Successful in 49s
Build / Lint pacwrap (push) Successful in 1m19s
Build / Build pacwrap (push) Successful in 1m32s

This commit is contained in:
Xavier Moffett 2024-11-05 18:20:27 -05:00
parent 3c685c617a
commit e8acbc5ea8
Signed by: Sapphirus
GPG key ID: A6C061B2CEA1A7AC

View file

@ -73,7 +73,7 @@ fn is_debug() -> bool {
}
fn main() {
let built = var("PACWRAP_SCHEMA_BUILT").is_ok_and(|s| s.parse().unwrap_or(false));
let built = var("PACWRAP_SCHEMA_BUILT").is_ok_and(|s| s == "1");
if !cfg!(target_os = "linux") || !cfg!(target_family = "unix") {
panic!("Unsupported build target. Please refer to the build documentation for further information.")