-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 04292a1
Showing
5 changed files
with
430 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.