summaryrefslogtreecommitdiff
path: root/include/vendor.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-10-16 15:48:43 +0100
committerLeah Rowe <leah@libreboot.org>2024-10-16 15:48:43 +0100
commit34f851742e15182c4b2ac9b6f638ff712c4e6afa (patch)
treef434d115be3e9ba88245bf6c3fdd31aff33afae0 /include/vendor.sh
parentc7a3a607f3d9b5639e8529d447acae5c74896b39 (diff)
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 <leah@libreboot.org>
Diffstat (limited to 'include/vendor.sh')
-rw-r--r--include/vendor.sh3
1 files changed, 2 insertions, 1 deletions
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."
}