Skip to content

Commit

Permalink
Merge pull request #85 from AstroOrbis/main
Browse files Browse the repository at this point in the history
Resolves part of #84
  • Loading branch information
fwartner authored Jul 21, 2021
2 parents 22e80bc + 49c1cd9 commit c9db8f5
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ A cleanup script for macOS that runs the following tasks:
* Cleanup composer cache
* Cleanup Dropbox cache
* Remove PhpStorm logs
* Remove Minecraft logs and cache
* Remove Steam logs and cache

## Install Automatically

Expand Down
24 changes: 24 additions & 0 deletions mac-cleanup
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,30 @@ if type "composer" &>/dev/null; then
composer clearcache &>/dev/null
fi

# Deletes Steam caches, logs, and temp files
# -Astro
if [ -d ~/Library/Application\ Support/Steam/ ]; then
msg 'Clearing Steam Cache, Log, and Temp Files...'
rm -rfv ~/Library/Application\ Support/Steam/appcache &>/dev/null
rm -rfv ~/Library/Application\ Support/Steam/depotcache &>/dev/null
rm -rfv ~/Library/Application\ Support/Steam/logs &>/dev/null
rm -rfv ~/Library/Application\ Support/Steam/steamapps/shadercache &>/dev/null
rm -rfv ~/Library/Application\ Support/Steam/steamapps/temp &>/dev/null
rm -rfv ~/Library/Application\ Support/Steam/steamapps/download &>/dev/null
fi

# Deletes Minecraft logs
# -Astro
if [ -d ~/Library/Application\ Support/minecraft ]; then
msg 'Clearing Minecraft Cache and Log Files...'
rm -rfv ~/Library/Application\ Support/minecraft/logs &>/dev/null
rm -rfv ~/Library/Application\ Support/minecraft/crash-reports &>/dev/null
rm -rfv ~/Library/Application\ Support/minecraft/webcache &>/dev/null
rm -rfv ~/Library/Application\ Support/minecraft/webcache2 &>/dev/null
rm -rfv ~/Library/Application\ Support/minecraft/crash-reports &>/dev/null
rm -rfv ~/Library/Application\ Support/minecraft/*.log &>/dev/null
fi

if type "brew" &>/dev/null; then
if [ "$update" = true ]; then
msg 'Updating Homebrew Recipes...'
Expand Down

0 comments on commit c9db8f5

Please sign in to comment.