Skip to content

Commit 2fa207e

Browse files
committed
fix: ensure $uefi_stub is defined before checking if it is a file
1 parent 906ce3b commit 2fa207e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/generate-zbm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ sub createUEFIBundle {
708708
}
709709
}
710710

711-
unless ( -f $uefi_stub ) {
711+
unless ( defined $uefi_stub and -f $uefi_stub ) {
712712
print "Cannot find kernel or initramfs to create UEFI bundle\n";
713713
exit 1;
714714
}

0 commit comments

Comments
 (0)