aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuniorJPDJ <git@juniorjpdj.pl>2021-07-08 10:47:29 +0200
committerMichael Brown <mcb30@ipxe.org>2021-07-26 15:34:33 +0100
commitb33cc1efe33ecf55017bb4ca7e8355e7b9c6e50c (patch)
tree13545501a3b1c1ea1eb7784da58be3a312b6b61b
parent4d180be5175e176ec27680557c1d67536a847610 (diff)
downloadipxe-b33cc1efe33ecf55017bb4ca7e8355e7b9c6e50c.zip
ipxe-b33cc1efe33ecf55017bb4ca7e8355e7b9c6e50c.tar.gz
ipxe-b33cc1efe33ecf55017bb4ca7e8355e7b9c6e50c.tar.bz2
[build] Fix genfsimg to work with FATDIR with space
Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rwxr-xr-xsrc/util/genfsimg2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/genfsimg b/src/util/genfsimg
index 1635a11..c131582 100755
--- a/src/util/genfsimg
+++ b/src/util/genfsimg
@@ -255,7 +255,7 @@ fi
# Create FAT filesystem image, if applicable
#
if [ -n "${FATIMG}" ] ; then
- FATSIZE=$(du -s -k ${FATDIR} | cut -f1)
+ FATSIZE=$(du -s -k "${FATDIR}" | cut -f1)
FATSIZE=$(( FATSIZE + PAD + 256 ))
touch "${FATIMG}"
if [ "${FATSIZE}" -le "1440" ] ; then