Hello,
I am doing a little install script for my work using shell, and I want to test wheter the script was started with or with sudo.
If it was without, and I need it I will put it in front of my command ..
But i cannot find a way to check for sudo ($USER only gives me the user).
Thanks for the tip
Bookmarks