-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathClean-macOS-Setup.sh
executable file
·44 lines (39 loc) · 2.34 KB
/
Clean-macOS-Setup.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
#!/bin/bash
###############################################################################
# Set variables #
###############################################################################
BIN=~/Clean-macOS-Setup/bin # shell scripts
CONFIG=~/Clean-macOS-Setup/config # configuration files directory
SETUP=~/Clean-macOS-Setup # root folder of Clean-macOS
###############################################################################
# Menu #
###############################################################################
while :
do
clear
cat<<EOF
###############################################################################
# Clean-macOS-Setup #
# Version : 1.2.0 #
# Author: Ali Al-Itejawi #
###############################################################################
# #
# Please enter your choice: #
# #
# (1) Install Homebrew #
# (2) Configure your machine #
# (3) Update Homebrew #
# (0) Exit #
# #
###############################################################################
EOF
read -n1 -s
case "$REPLY" in
"1") echo "Ready to install Homebrew..." | $BIN/install.sh ;;
"2") echo "Ready to configure macOS..." | $BIN/config.sh ;;
"3") echo "Ready to update Homebrew..." | $BIN/update.sh ;;
"0") exit ;;
* ) echo "Invalid option, how did you get here?!" ;;
esac
sleep 1
done