diff --git a/README.md b/README.md index ad975d1..1c40437 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ # mac-cleanup -[![Build Status](https://www.travis-ci.com/kjnsn/homebrew-mac-cleanup.svg?branch=master)](https://www.travis-ci.com/kjnsn/homebrew-mac-cleanup) [![CI](https://github.com/fwartner/mac-cleanup/actions/workflows/ci.yml/badge.svg)](https://github.com/fwartner/mac-cleanup/actions/workflows/ci.yml) A cleanup script for macOS that runs the following tasks: @@ -121,5 +120,5 @@ Support this project with your organization. Your logo will show up here with a - - If you like what I am doing please consider [sponsor my work](https://github.com/sponsors/fwartner)! \ No newline at end of file + + If you like what I am doing please consider [sponsor my work](https://github.com/sponsors/fwartner)! diff --git a/mac-cleanup b/mac-cleanup index 3ec1ab3..2467632 100644 --- a/mac-cleanup +++ b/mac-cleanup @@ -232,8 +232,7 @@ sudo purge &>/dev/null msg "${GREEN}Success!${NOFORMAT}" newAvailable=$(df / | tail -1 | awk '{print $4}') -count=$((oldAvailable - newAvailable)) -#count=$(( $count * 512)) +count=$((newAvailable - oldAvailable)) bytesToHuman $count cleanup