28 lines
651 B
Bash
Executable file
28 lines
651 B
Bash
Executable file
#!/bin/bash
|
|
|
|
APT_CMD=$(which apt-get)
|
|
PACMAN_CMD=$(which pacman)
|
|
|
|
if [[ ! -z $APT_CMD ]]; then
|
|
echo "System Identified: Debian"
|
|
|
|
# Setup apt sources
|
|
while true;do
|
|
read -rp "Would you like to use Debian Unstable? (y/n): " answer
|
|
answer="${answer,,}"
|
|
if [[ "$answer" = "y" ]]; then
|
|
echo "Change apt sources"
|
|
break
|
|
elif [[ "$answer" = "n" ]]; then
|
|
echo "Proceeding with Debian Stable"
|
|
break
|
|
else
|
|
echo "Invalid Input. Please enter 'y' or 'n'."
|
|
fi
|
|
done
|
|
|
|
# Start System Setup
|
|
elif [[ ! -z $PACMAN_CMD ]]; then
|
|
echo "Arch"
|
|
fi
|