-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.sh
More file actions
executable file
·38 lines (30 loc) · 992 Bytes
/
bootstrap.sh
File metadata and controls
executable file
·38 lines (30 loc) · 992 Bytes
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
#!/bin/sh
# macOS High Sierra Bootstrap
# Exit immediately if a command exits with a non-zero status
set -e
# Update the user's cached credentials, authenticating the user if necessary
sudo -v
# Store a local variable of the scripts current directory
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
echo "==> Install macOS tweaks? (Y/n)"
read USER_PROMPT
if [[ "$USER_PROMPT" == 'y' ]] || [[ "$USER_PROMPT" == '' ]]; then
${DIR}/macos-tweaks.sh
else
echo "==> Skip installing macOS tweaks."
fi
echo "==> Install user applications? (Y/n)"
read USER_PROMPT
if [[ "$USER_PROMPT" == 'y' ]] || [[ "$USER_PROMPT" == '' ]]; then
${DIR}/gui-applications.sh
else
echo "==> Skip installing user applications."
fi
echo "==> Install development utilities? (Y/n)"
read USER_PROMPT
if [[ "$USER_PROMPT" == 'y' ]] || [[ "$USER_PROMPT" == '' ]]; then
${DIR}/development-utils.sh
else
echo "==> Skip installing development utilities."
fi
echo "==> Bootstrap complete."