diff options
Diffstat (limited to 'Meta/build-image-extlinux.sh')
-rwxr-xr-x | Meta/build-image-extlinux.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Meta/build-image-extlinux.sh b/Meta/build-image-extlinux.sh index 314c6cd30d..d4977c9e56 100755 --- a/Meta/build-image-extlinux.sh +++ b/Meta/build-image-extlinux.sh @@ -25,7 +25,11 @@ if [ -z $syslinux_dir ]; then fi disk_usage() { +if [ "$(uname -s)" = "Darwin" ]; then du -sm "$1" | cut -f1 +else + du -sm --apparent-size "$1" | cut -f1 +fi } DISK_SIZE=$(($(disk_usage "$SERENITY_SOURCE_DIR/Base") + $(disk_usage Root) + 300)) |