-
Notifications
You must be signed in to change notification settings - Fork 0
/
mas.sh
49 lines (39 loc) · 907 Bytes
/
mas.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
#!/bin/bash
source './utils.sh'
apps=(
"1510445899" # Meeter
"595191960" # CopyClip
"497799835" # Xcode
"1176895641" # Spark
"506189836" # Harvest
"409201541" # Pages
"1193539993" # Brother iPrint&Scan
"905953485" # NordVPN
)
function install_mas() {
if which mas &> /dev/null; then
fancy_echo "Mas is already installed!"
else
fancy_echo "Mas is about to be installed!"
sh -c "brew install mas"
fi
}
function update_mas() {
fancy_echo "Mas is about to be updated!"
mas upgrade
}
function mas_login() {
fancy_echo "You need to be logged in the app store!"
mas signin --dialog [email protected]
}
function install_apps() {
echo "\n"
for app in "${apps[@]}"; do
fancy_echo "Mas is going to install $app!"
mas install "$app"
done
}
install_mas
update_mas
mas_login
install_apps