mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:24:57 +00:00
parent
2eb9dca782
commit
dbd9d13857
3 changed files with 12 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue