diff options
Diffstat (limited to 'Meta/build-image-grub.sh')
-rwxr-xr-x | Meta/build-image-grub.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Meta/build-image-grub.sh b/Meta/build-image-grub.sh index e8e55ee4a0..dffc940fdb 100755 --- a/Meta/build-image-grub.sh +++ b/Meta/build-image-grub.sh @@ -24,7 +24,11 @@ fi echo "using grub-install at ${grub}" 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)) |