aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2021-01-22 09:52:57 +0000
committerMichael Brown <mcb30@ipxe.org>2021-01-22 09:58:37 +0000
commita2a6618d460d46acacc47d7c3048da3fcf5afd01 (patch)
tree450b072ba516e63ea9225e3693995452e83128dc
parent565ca3eab07ee4126cb868ee89853f78f5fc6692 (diff)
downloadipxe-a2a6618d460d46acacc47d7c3048da3fcf5afd01.zip
ipxe-a2a6618d460d46acacc47d7c3048da3fcf5afd01.tar.gz
ipxe-a2a6618d460d46acacc47d7c3048da3fcf5afd01.tar.bz2
[build] Fix genfsimg incompatibility with dash shell
Reported-by: Antony Messerli <antony@mes.ser.li> Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rwxr-xr-xsrc/util/genfsimg4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/genfsimg b/src/util/genfsimg
index ddf0c45..3f1356e 100755
--- a/src/util/genfsimg
+++ b/src/util/genfsimg
@@ -55,12 +55,12 @@ efi_boot_name() {
exit 1
fi
PEOFF=$(get_byte "${FILENAME}" 0x3c)
- PESIG=$(get_word "${FILENAME}" "0x${PEOFF}")
+ PESIG=$(get_word "${FILENAME}" 0x${PEOFF})
if [ "${PESIG}" != "5045" ] ; then
echo "${FILENAME}: invalid PE header" >&2
exit 1
fi
- ARCH=$(get_word "${FILENAME}" $(( "0x${PEOFF}" + 4 )) )
+ ARCH=$(get_word "${FILENAME}" $(( 0x${PEOFF} + 4 )) )
case "${ARCH}" in
"4c01" )
echo "BOOTIA32.EFI"