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
|
@ -20,7 +20,11 @@ fi
|
|||
|
||||
disk_usage() {
|
||||
# shellcheck disable=SC2003
|
||||
if [ "$(uname -s)" = "Darwin" ]; then
|
||||
expr "$(du -sk "$1" | cut -f1)" / 1024
|
||||
else
|
||||
expr "$(du -sk --apparent-size "$1" | cut -f1)" / 1024
|
||||
fi
|
||||
}
|
||||
|
||||
DISK_SIZE=$(($(disk_usage "$SERENITY_SOURCE_DIR/Base") + $(disk_usage Root) + 100))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue