Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
divspace committed Dec 9, 2020
0 parents commit 04292a1
Show file tree
Hide file tree
Showing 5 changed files with 430 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.md]
insert_final_newline = false
trim_trailing_whitespace = false
37 changes: 37 additions & 0 deletions installer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/usr/bin/env sh

VERSION=1.0.0

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

green="\033[0;32m"
yellow="\033[33m"
reset="\033[0m"

info() {
if [ -n "$1" ]; then
printf "%bUpClean 🧼 %b%s%b has been %s!%b\n" "$green" "$yellow" "$VERSION" "$green" "$1" "$reset"
fi
}

install() {
curl -o upclean https://raw.githubusercontent.com/divspace/upclean/master/upclean.sh
chmod +x upclean
mv -f upclean /usr/local/bin/upclean
info "$1"
}

uninstall() {
rm -f /usr/local/bin/upclean
info "uninstalled"
}

case $1 in
"uninstall") uninstall ;;
"update") install "updated" ;;
*) install "installed" ;;
esac

exit 0
64 changes: 64 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# UpClean

An update and cleanup script for macOS.

- [Installation](#installation)
- [Update](#update)
- [Uninstall](#uninstall)
- [Usage](#usage)

![Screenshot](./screenshot.png)

## Installation

You can use any of the methods below to install UpClean:

```bash
sh -c "$(curl -fsSL https://raw.githubusercontent.com/divspace/upclean/master/installer.sh)"
```

```bash
sh -c "$(wget https://raw.githubusercontent.com/divspace/upclean/master/installer.sh -O -)"
```

```bash
curl -o upclean https://raw.githubusercontent.com/divspace/upclean/master/upclean.sh
chmod +x upclean
mv upclean /usr/local/bin/upclean
```

## Update

```bash
curl -fsSL "https://raw.githubusercontent.com/divspace/upclean/master/installer.sh" | bash -s update
```

## Uninstall

```bash
curl -fsSL "https://raw.githubusercontent.com/divspace/upclean/master/installer.sh" | bash -s uninstall
```

## Usage

```
$ upclean --help
UpClean 1.0.0 🧼 upclean.app
An update and cleanup script for macOS.
Usage:
upclean [options]
Options:
--skip-clean Skip cleaning
--skip-composer Skip updating Composer
--skip-composer-packages Skip updating Composer packages
--skip-dns Skip flushing DNS cache
--skip-homebrew Skip updating Homebrew
--skip-mas Skip updating Mac App Store applications
--skip-memory Skip clearing inactive memory
--skip-update Skip updating
-h, --help Display this help message
```
Binary file added screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 04292a1

Please sign in to comment.