Skip to content

Commit

Permalink
Fixed #66
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Wartner committed Jun 24, 2021
1 parent c454673 commit de0b3c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -121,5 +120,5 @@ Support this project with your organization. Your logo will show up here with a
<a href="https://opencollective.com/mac-cleanup/organization/7/website"><img src="https://opencollective.com/mac-cleanup/organization/7/avatar.svg"></a>
<a href="https://opencollective.com/mac-cleanup/organization/8/website"><img src="https://opencollective.com/mac-cleanup/organization/8/avatar.svg"></a>
<a href="https://opencollective.com/mac-cleanup/organization/9/website"><img src="https://opencollective.com/mac-cleanup/organization/9/avatar.svg"></a>
If you like what I am doing please consider [sponsor my work](https://github.com/sponsors/fwartner)!

If you like what I am doing please consider [sponsor my work](https://github.com/sponsors/fwartner)!
3 changes: 1 addition & 2 deletions mac-cleanup
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit de0b3c6

Please sign in to comment.