From 3a95300365fc1ed90de44e5ef41b79d3ae05e29e Mon Sep 17 00:00:00 2001 From: itiligent Date: Thu, 10 Aug 2023 04:40:28 +1000 Subject: [PATCH] check sudo group membership to run --- 1-setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/1-setup.sh b/1-setup.sh index ca8de67..65f4403 100644 --- a/1-setup.sh +++ b/1-setup.sh @@ -34,14 +34,14 @@ NC='\033[0m' #No Colour if [[ $EUID -eq 0 ]]; then echo - echo -e "${LRED}This script must NOT be run as root" 1>&2 + echo -e "${LRED}This script must NOT be run as root, exiting..." 1>&2 echo -e ${NC} exit 1 fi if ! [ $(id -nG "$USER" 2>/dev/null | egrep "sudo" | wc -l) -gt 0 ]; then echo - echo -e "${LRED}The current user (${USER}) does not belong to 'sudo' group." 1>&2 + echo -e "${LRED}The current user (${USER}) must be a member of the 'sudo' group, exiting..." 1>&2 echo -e ${NC} exit 1 fi