arch-automated-installer/scripts/system-setup/sources-setup.sh

26 lines
747 B
Bash
Raw Normal View History

2024-06-27 05:08:47 +00:00
#!/bin/bash
if [[ $1 == "Debian" ]]; then
2024-06-27 05:08:47 +00:00
echo "$1 Sources Setup"
2024-06-27 05:08:47 +00:00
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"
2024-06-27 05:08:47 +00:00
echo "apt-get update && apt-get -y dist-upgrade"
break
elif [[ "$answer" = "n" ]]; then
echo "Proceeding with Debian Stable"
break
else
echo "Invalid Input. Please enter 'y' or 'n'."
fi
done
elif [[ $1 == "Arch" ]]; then
echo "$1 Sources Setup"
2024-06-27 05:08:47 +00:00
fi