Skip to content
Snippets Groups Projects
Commit 63112f19 authored by efer's avatar efer
Browse files

show sudo user

parent feaf22f5
No related branches found
No related tags found
No related merge requests found
...@@ -68,7 +68,7 @@ fi ...@@ -68,7 +68,7 @@ fi
# SUDO check # SUDO check
# #
chksudo() { chksudo() {
echo "Checking for sudo rights..." echo "Checking for sudo rights for $USER..."
sudo -l &>/dev/null sudo -l &>/dev/null
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo -e "[sudo]" $R_"You need sudo rights to continue"$_N echo -e "[sudo]" $R_"You need sudo rights to continue"$_N
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment