build/boot/roms mkUBootRoms: initialise variables

they were outside the scope, outside of the if statements.

in some shells, this is ok.

we use "sh" so the user could have any shell.

be a bit nicer to the more asininely technically
correct sh implementations out there

Signed-off-by: Leah Rowe <leah@libreboot.org>
btrfsvols
Leah Rowe 2023-07-17 08:20:02 +01:00
parent d918139f36
commit 7c90a4077f
1 changed files with 3 additions and 0 deletions

View File

@ -487,6 +487,9 @@ mkUbootRom() {
target_uboot_config="${3}"
cbfstool_path="${4}"
target_ubootelf=""
target_ubdir=""
if [ "${target_uboot_config}" = "default" ]; then
target_ubdir="payload/u-boot/${board}"
else