Skip to content

Instantly share code, notes, and snippets.

@mamapi
Created February 11, 2023 22:11
Show Gist options
  • Select an option

  • Save mamapi/4192fe7b913daaf6e26be69c9c5f9995 to your computer and use it in GitHub Desktop.

Select an option

Save mamapi/4192fe7b913daaf6e26be69c9c5f9995 to your computer and use it in GitHub Desktop.

Revisions

  1. mamapi created this gist Feb 11, 2023.
    5 changes: 5 additions & 0 deletions deploy.sh
    Original 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