]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[build] Fix genfsimg to work with FATDIR with space
authorJuniorJPDJ <git@juniorjpdj.pl>
Thu, 8 Jul 2021 08:47:29 +0000 (10:47 +0200)
committerMichael Brown <mcb30@ipxe.org>
Mon, 26 Jul 2021 14:34:33 +0000 (15:34 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/util/genfsimg

index 1635a11acb8258566c1bfed949eac6c28cfc761d..c13158203b7ca86cfb35bfec1cc5f85a36a64550 100755 (executable)
@@ -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