-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
executable file
·48 lines (43 loc) · 1.38 KB
/
run.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
#!/bin/bash
# DESCRIPTION
# Executes the command line interface.
# USAGE
# ./run.sh OPTION
# SETTINGS
source settings/settings.sh
# LIBRARY
source lib/installers.sh
source lib/options.sh
source lib/reinstallers.sh
source lib/uninstallers.sh
source lib/utilities.sh
source lib/verifiers.sh
# EXECUTION
while true; do
if [[ $# == 0 ]]; then
printf "\nUsage: run OPTION\n"
printf "\nOSX Options:\n"
printf " Install:\n"
printf " b: Apply basic system settings.\n"
printf " h: Install Homebrew software.\n"
printf " a: Install application software.\n"
printf " x: Install application extensions.\n"
printf " d: Apply software defaults.\n"
printf " s: Setup and configure installed software.\n"
printf " w: Clean work directory.\n"
printf " i: Install everything (i.e. executes all options, listed above, top to bottom).\n"
printf " Manage:\n"
printf " c: Check status of managed software.\n"
printf " C: Caffeinate machine.\n"
printf " A: Uninstall application software.\n"
printf " X: Uninstall application extension.\n"
printf " Ra: Reinstall application software.\n"
printf " Rx: Reinstall application extension.\n"
printf " q: Quit/Exit.\n\n"
read -p "Enter selection: " response
printf "\n"
process_option $response
else
process_option $1
fi
done