arch-automated-installer/system-setup.sh
2024-06-27 13:08:47 +08:00

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"