26 lines
493 B
Bash
Executable file
26 lines
493 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Parent installer for all System Setup Scripts.
|
|
|
|
APT_CMD=$(which apt-get)
|
|
PACMAN_CMD=$(which pacman)
|
|
|
|
if [[ -z $APT_CMD ]]; then
|
|
system=Debian
|
|
echo "System Identified: Debian"
|
|
elif [[ -z $PACMAN_CMD ]]; then
|
|
system=Arch
|
|
echo "System Identified: Arch"
|
|
else
|
|
echo "System Misconfigured"
|
|
break
|
|
fi
|
|
|
|
systemsetup="./scripts/"
|
|
|
|
bash $systemsetup/sources-setup.sh $system
|
|
bash $systemsetup/sudo-setup.sh $system
|
|
bash $systemsetup/git-setup.sh $system
|
|
|
|
echo "done"
|