Reading the sudo man page, I see that the -v flag can be used to check if the user has sudo privileges on his workstation. I have a piece of script that should check it out. If the user does not have sudo privileges, he displays:
Sorry, user tester may not run sudo on debian.
How can I suppress this message and just execute the rest of the code?
source share