[build] Fix genfsimg to work with FATDIR with space

Signed-off-by: Michael Brown <mcb30@ipxe.org>
pull/448/head
JuniorJPDJ 2021-07-08 10:47:29 +02:00 committed by Michael Brown
parent 4d180be517
commit b33cc1efe3
1 changed files with 1 additions and 1 deletions

View File

@ -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