Add repos

This commit is contained in:
Alicia Sykes 2023-04-04 15:29:00 +01:00
parent e171fdcda9
commit afdb6b9201

View File

@ -73,6 +73,19 @@ debian_apps=(
'neofetch' # Show off distro and system info
)
debian_repos=(
'main'
'universe'
'restricted'
'multiverse'
)
# Following packages not found by apt, need to fix:
# aria2, bat, broot, diff-so-fancy, duf, hyperfine,
# just, procs, ripgrep, sd, tealdeer, tokei, trash-cli,
# zoxide, clamav, cryptsetup, gnupg, lynis, btop, gping.
# Colors
PURPLE='\033[0;35m'
YELLOW='\033[0;93m'
@ -110,6 +123,17 @@ if ! hash apt 2> /dev/null; then
exit 1
fi
# Enable upstream package repositories
echo -e "${CYAN_B}Would you like to enable listed repos? (y/N)${RESET}\n"
read -t $PROMPT_TIMEOUT -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
for repo in ${debian_repos[@]}; do
echo -e "${PURPLE}Enabling ${repo} repo...${RESET}"
sudo add-apt-repository $repo
done
fi
# Prompt user to update package database
echo -e "${CYAN_B}Would you like to update package database? (y/N)${RESET}\n"
read -t $PROMPT_TIMEOUT -n 1 -r