diff options
Diffstat (limited to 'helper')
| -rw-r--r-- | helper/fileutil.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helper/fileutil.inc b/helper/fileutil.inc index 76293bfb..8639aea0 100644 --- a/helper/fileutil.inc +++ b/helper/fileutil.inc @@ -115,7 +115,7 @@ generate_initramfs() { [ "x${PS[1]}" != "x0" ] && perror "cpio create failed." [ "x${PS[2]}" != "x0" ] && perror "gzip to '$3' failed." cd - &> /dev/null - pinfo "Created initramfs of $1 at $3. Size: $(du -bc "$3" | awk 'END {print $1}')" + pinfo "Created initramfs of $1 at $3. Size: $(du -bsh "$3" | awk 'END {print $1}')" } # generates squashfs of directory @@ -126,5 +126,5 @@ generate_squashfs() { [ -d "$1" ] || perror "$1 is not a directory." mksquashfs "$1" "$2" -comp xz -b 1M -no-recovery >&6 \ || perror "mksquashfs failed ($?)." - pinfo "Created squashfs of $1 at $2. Size: $(du -bc "$2" | awk 'END {print $1}')" + pinfo "Created squashfs of $1 at $2. Size: $(du -bsh "$2" | awk 'END {print $1}')" } |
