Skip to content

Commit d30685e

Browse files
committed
Only build local version if it exists
1 parent 138b198 commit d30685e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ fn build_uefi_bootloader(out_dir: &Path) -> PathBuf {
2020
let cargo = std::env::var("CARGO").unwrap_or_else(|_| "cargo".into());
2121
let mut cmd = Command::new(cargo);
2222
cmd.arg("install").arg("bootloader-x86_64-uefi");
23-
if std::env::var("BOOTLOADER_LOCAL_BUILD").is_ok() {
23+
if std::env::var("BOOTLOADER_LOCAL_BUILD").is_ok() && Path::new("uefi").exists() {
2424
// local build
2525
cmd.arg("--path").arg("uefi");
2626
} else {

0 commit comments

Comments
 (0)