26 lines
451 B
Bash
Executable file
26 lines
451 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Parent installer for all System Setup Scripts.
|
|
|
|
if [[ ! -z $(which apt-get) ]]; then
|
|
system=Debian
|
|
echo "System Identified: $system"
|
|
elif [[ ! -z $(which pacman) ]]; then
|
|
system=Arch
|
|
echo "System Identified: $system"
|
|
else
|
|
echo "System Misconfigured"
|
|
break
|
|
fi
|
|
|
|
systemsetup="./scripts/system-setup"
|
|
|
|
for FILE in "$systemsetup"/*
|
|
do
|
|
if [[ -f "$FILE" ]]; then
|
|
bash $FILE $system
|
|
fi
|
|
done
|
|
|
|
echo "done"
|