-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·43 lines (36 loc) · 1 KB
/
install.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
function deps {
if [[ "$OSTYPE" == "darwin"* ]]; then
echo "INFO: Running MacOS installation"
if ! command -v brew >/dev/null 2>&1; then
echo "INFO: Installing Homebrew"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
if ! command -v stow >/dev/null 2>&1; then
echo "INFO: Installing Stow"
brew install stow
fi
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
echo "INFO: Running linux (Ubuntu preferred) installation"
else
echo "ERROR: OS $OSTYPE not supported yet :("
exit 1
fi
echo "INFO: All deps installed!"
}
function install {
for dir in */; do
if [[ -d "$dir" ]]; then
dir_name=${dir%/}
echo "INFO: stowing $dir_name"
stow "$dir_name"
fi
done
}
function cli_init {
~/jollyjerr.sh init
}
deps
install
cli_init
echo "Done! Leeeeetttttt'sssss gooooooo!!!!!!!"