-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
41 lines (36 loc) · 1.06 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
#!/bin/bash
UNAME=$(uname | tr "[:upper:]" "[:lower:]")
# If Linux, try to determine specific distribution
if [ "$UNAME" == "linux" ]; then
# If available, use LSB to identify distribution
if [ -f /etc/lsb-release -o -d /etc/lsb-release.d ]; then
export DISTRIB=$(lsb_release -i | cut -d: -f2 | sed s/'^\t'//)
# Otherwise, use release info file
else
export DISTRIB=$(ls -d /etc/[A-Za-z]*[_-][rv]e[lr]* | grep -v "lsb" | cut -d'/' -f3 | cut -d'-' -f1 | cut -d'_' -f1)
fi
fi
# For everything else (or if above failed), just use generic identifier
[ "$DISTRIB" == "" ] && export DISTRIB=$UNAME
echo $DISTRIB
unset UNAME
if [ "$DISTRIB" == "ManjaroLinux" ]; then
export REPO="manjaro"
export INSTALL="yay -S --noconfirm"
sh ./yay/install
else
export REPO="ubuntu"
export INSTALL="sudo apt-get --yes install"
fi
sh ./git/install
sh ./system/install
sh ./nvim/install
sh ./docker/install
# sh ./node/install
sh ./php/install
sh ./mkcert/install
sh ./fonts/install
sh ./miscellaneous/install
unset REPO
unset INSTALL
unset DISTRIB