#!/bin/bash if [[ $1 == "Debian" ]]; then echo "$1 Sources Setup" echo "apt-get update && apt-get -y upgrade" while true;do read -rp "Would you like to use Debian Unstable? (y/n): " answer answer="${answer,,}" if [[ "$answer" = "y" ]]; then echo "Changing apt sources" echo "cp -v ./debian-assets/debian-sid-sources.list /etc/apt/sources.list" echo "apt-get update && apt-get -y dist-upgrade" break elif [[ "$answer" = "n" ]]; then echo "Proceeding with Debian Stable" echo "cp -v ./debian-assets/debian-stable-sources.list /etc/apt/sources.list" echo "apt-get update && apt-get -y dist-upgrade" break else echo "Invalid Input. Please enter 'y' or 'n'." fi done elif [[ $1 == "Arch" ]]; then echo "$1 Sources Setup" fi