-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathClean-macOS.sh
executable file
·58 lines (50 loc) · 2.06 KB
/
Clean-macOS.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
set -e
###############################################################################
# Set variables #
###############################################################################
BIN="${HOME}/Clean-macOS/bin" # shell scripts
CONFIG="${HOME}/Clean-macOS/config" # configuration files directory
SETUP="${HOME}/Clean-macOS" # root folder of Clean-macOS
###############################################################################
# Menu #
###############################################################################
install() {
echo "Ready to install Homebrew..."
"${BIN}/install.sh"
}
configure() {
echo "Ready to configure macOS..."
"${BIN}/config.sh"
}
update() {
echo "Ready to update Homebrew..."
"${BIN}/update.sh"
}
while true; do
clear
cat <<EOF
########################################################################
# Clean-macOS #
# Version : 1.13 #
########################################################################
# #
# Please enter your choice: #
# #
# (1) Install #
# (2) Configure #
# (3) Update #
# (0) Exit #
# #
########################################################################
EOF
read -n1 -s
case "$REPLY" in
1) install ;;
2) configure ;;
3) update ;;
0) exit ;;
*) echo "Invalid option!" ;;
esac
sleep 1
done