From 34f851742e15182c4b2ac9b6f638ff712c4e6afa Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Wed, 16 Oct 2024 15:48:43 +0100 Subject: vendor.sh: Don't use x_ for image MAC address mod The path might contain spaces and such, which breaks when using the x_ prefix. Call err instead. Signed-off-by: Leah Rowe --- include/vendor.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/vendor.sh b/include/vendor.sh index 03ce9801..0f97a641 100644 --- a/include/vendor.sh +++ b/include/vendor.sh @@ -390,5 +390,6 @@ modify_gbe() x_ cp "${CONFIG_GBE_BIN_PATH##*../}" "$TMPDIR/gbe" x_ "util/nvmutil/nvm" "$TMPDIR/gbe" setmac $new_mac - x_ "$ifdtool" $ifdprefix -i GbE:"$TMPDIR/gbe" "$1" -O "$1" + "$ifdtool" $ifdprefix -i GbE:"$TMPDIR/gbe" "$1" -O "$1" || \ + $err "Cannot insert modified GbE region into target image." } -- cgit v1.2.1