Skip to content

Commit

Permalink
Add option to skip cleaning Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
divspace committed Dec 15, 2020
1 parent 1d303b3 commit caa775e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions installer.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env sh

VERSION=1.2.0
VERSION=1.3.0

# ------------------------------------------------------------------------------
# UpClean v1.2.0 (https://upclean.app) — An update and cleanup script for macOS.
# UpClean v1.3.0 (https://upclean.app) — An update and cleanup script for macOS.
# ------------------------------------------------------------------------------

green="\033[0;32m"
Expand Down
3 changes: 2 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ mv upclean /usr/local/bin/upclean
```
$ upclean --help
UpClean 1.2.0 🧼 upclean.app
UpClean 1.3.0 🧼 upclean.app
An update and cleanup script for macOS.
Expand All @@ -45,6 +45,7 @@ Options:
--skip-composer Skip updating Composer
--skip-composer-packages Skip updating Composer packages
--skip-dns Skip flushing DNS cache
--skip-docker Skip cleaning Docker
--skip-homebrew Skip updating Homebrew
--skip-mas Skip updating Mac App Store applications
--skip-memory Skip clearing inactive memory
Expand Down
Binary file modified screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 6 additions & 3 deletions upclean.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env bash

VERSION=1.2.0
VERSION=1.3.0

# ------------------------------------------------------------------------------
# UpClean v1.2.0 (https://upclean.app) — An update and cleanup script for macOS.
# UpClean v1.3.0 (https://upclean.app) — An update and cleanup script for macOS.
# ------------------------------------------------------------------------------

soap=🧼
Expand All @@ -18,6 +18,7 @@ reset="\033[0m"
configFile=~/.upcleanrc

shouldClean=true
shouldCleanDocker=true
shouldClearMemory=true
shouldFlushDns=true
shouldUpdate=true
Expand All @@ -38,6 +39,7 @@ function usage() {
printf -- "%b --skip-composer %bSkip updating Composer\n" "$green" "$reset"
printf -- "%b --skip-composer-packages %bSkip updating Composer packages\n" "$green" "$reset"
printf -- "%b --skip-dns %bSkip flushing DNS cache\n" "$green" "$reset"
printf -- "%b --skip-docker %bSkip cleaning Docker\n" "$green" "$reset"
printf -- "%b --skip-homebrew %bSkip updating Homebrew\n" "$green" "$reset"
printf -- "%b --skip-mas %bSkip updating Mac App Store applications\n" "$green" "$reset"
printf -- "%b --skip-memory %bSkip clearing inactive memory\n" "$green" "$reset"
Expand Down Expand Up @@ -360,7 +362,7 @@ function initializeCleanup() {

cleanAdobe
cleanComposer
cleanDocker
$shouldCleanDocker && cleanDocker
cleanDropbox
cleanGoogleChrome
cleanGoogleDrive
Expand Down Expand Up @@ -397,6 +399,7 @@ function checkOptions() {
"--skip-composer") shouldUpdateComposer=false ;;
"--skip-composer-packages") shouldUpdateComposerPackages=false ;;
"--skip-dns") shouldFlushDns=false ;;
"--skip-docker") shouldCleanDocker=false ;;
"--skip-homebrew") shouldUpdateHomebrew=false ;;
"--skip-mas") shouldUpdateMas=false ;;
"--skip-memory") shouldClearMemory=false ;;
Expand Down

0 comments on commit caa775e

Please sign in to comment.