2024-06-27 05:08:47 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2024-06-27 07:24:32 +00:00
|
|
|
if [[ $1 == "Debian" ]]; then
|
2024-06-27 05:08:47 +00:00
|
|
|
|
2024-06-27 07:24:32 +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
|
2024-06-27 07:24:32 +00:00
|
|
|
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
|
2024-06-27 07:24:32 +00:00
|
|
|
|
|
|
|
elif [[ $1 == "Arch" ]]; then
|
|
|
|
echo "$1 Sources Setup"
|
2024-06-27 05:08:47 +00:00
|
|
|
fi
|