From 23d6f2eae53eb78f6cf234e3f0a026a1d27fafb9 Mon Sep 17 00:00:00 2001 From: Marcus Date: Tue, 13 Jun 2023 01:27:22 +0200 Subject: [PATCH] changes --- setup.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index ada8267..c33a20d 100644 --- a/setup.sh +++ b/setup.sh @@ -60,6 +60,13 @@ then fi message "Continue with installation..." + +if ! groups | grep sudo +then + message error "Your user $USER is not in group 'sudo'." + message error "Add your user to the group with: ${YELLOW}su -c usermod -G sudo ${USER}${ENDCOLOR}" + error +fi message "check sources.list" if ! grep "contrib" /etc/apt/sources.list > /dev/null && grep "non-free" /etc/apt/sources.list > /dev/null then @@ -77,8 +84,9 @@ deb-src http://deb.debian.org/debian/ bookworm-updates main contrib non-free non " | sudo tee /etc/apt/sources.list message "apt update" sudo apt update - fi + + # iterate through $packages for categorie in $package_categories do