From 02f8dc7c1e876eda8c377434cfc585b26ca5b3f9 Mon Sep 17 00:00:00 2001 From: Rodolfo Date: Tue, 25 Jun 2024 01:22:18 +0800 Subject: [PATCH] Update: Add change apt sources conditionals --- system-setup.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/system-setup.sh b/system-setup.sh index 221c580..42eb046 100755 --- a/system-setup.sh +++ b/system-setup.sh @@ -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