diff options
author | Leah Rowe <leah@libreboot.org> | 2023-12-22 09:46:43 +0000 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2023-12-22 10:24:00 +0000 |
commit | ab65ea4c99af4f5569496c58b604ada612a2469a (patch) | |
tree | 6feb004f23060a471653ad6d1820de6eea91d878 /script/build/roms | |
parent | fa25414bab5ca9e487bd265f0709e90e41769c69 (diff) |
general code cleanup
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/build/roms')
-rwxr-xr-x | script/build/roms | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/script/build/roms b/script/build/roms index 39808098..03dce95e 100755 --- a/script/build/roms +++ b/script/build/roms @@ -164,9 +164,8 @@ build_dependency_seabios() build_dependency_grub() { - [ "${payload_grub}" != "y" ] && \ - [ "${payload_seabios_withgrub}" != "y" ] && \ - [ "${payload_seabios_grubonly}" != "y" ] && return 0 + [ "$payload_grub" != "y" ] && [ "$payload_seabios_withgrub" != "y" ] \ + && [ "${payload_seabios_grubonly}" != "y" ] && return 0 rebuild_grub="n" [ -f "${grubelf}" ] || rebuild_grub="y" @@ -418,7 +417,7 @@ moverom() { [ "${vendorfiles}" = "n" ] && newrom="${newrom%.rom}_noblobs.rom" printf "Creating target image: %s\n" "${newrom}" - [ -d "${newrom%/*}" ] || x_ mkdir -p "${newrom%/*}/" + x_ mkdir -p "${newrom%/*}" x_ cp "${rompath}" "${newrom}" } |