Update: Add change apt sources conditionals

This commit is contained in:
Rodolfo 2024-06-25 01:22:18 +08:00
parent d3535f623e
commit 02f8dc7c1e

View file

@ -4,10 +4,24 @@ APT_CMD=$(which apt-get)
PACMAN_CMD=$(which pacman)
if [[ ! -z $APT_CMD ]]; then
echo "Debian"
echo "System Identified: Debian"
# Set up sudo
echo ""
# 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