Skip to content

Commit

Permalink
fix: ensure $uefi_stub is defined before checking if it is a file
Browse files Browse the repository at this point in the history
  • Loading branch information
zdykstra committed Aug 15, 2022
1 parent 906ce3b commit 2fa207e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/generate-zbm
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ sub createUEFIBundle {
}
}

unless ( -f $uefi_stub ) {
unless ( defined $uefi_stub and -f $uefi_stub ) {
print "Cannot find kernel or initramfs to create UEFI bundle\n";
exit 1;
}
Expand Down

0 comments on commit 2fa207e

Please sign in to comment.