Created
February 11, 2023 22:11
-
-
Save mamapi/4192fe7b913daaf6e26be69c9c5f9995 to your computer and use it in GitHub Desktop.
Revisions
-
mamapi created this gist
Feb 11, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ if [[ $OSTYPE == "darwin"* ]]; then full_size=$(find $build_dir ! -type d -print0 | xargs -0 stat -f '%z' | awk '{sum += $1} END{print sum}') else full_size=$(du -sb $build_dir | awk '{print $1}') fi