diff --git a/include/rom.sh b/include/rom.sh index 29741df..6020614 100644 --- a/include/rom.sh +++ b/include/rom.sh @@ -60,8 +60,7 @@ cook_coreboot_config() check_coreboot_utils() { for util in cbfstool ifdtool; do - [ "$badhash" = "n" ] || rm -f "elf/$util/$1/$util" || \ - $err "!rm badelf elf/$util/$1/$util" + [ "$badhash" = "y" ] && x_ rm -f "elf/$util/$1/$util" e "elf/$util/$1/$util" f && continue utilelfdir="elf/$util/$1"