We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sudo may be in different locations on different systems, perhaps implement a function to locate it. Perhaps the output of which sudo can be used.
sudo
which sudo
Right now /usr/bin/sudo is hardcoded.
/usr/bin/sudo
The text was updated successfully, but these errors were encountered:
which just iterates over the "$PATH", right?
which
We can just use the user's PATH environment variable, tokenize it by colon, and then work through each folder to find the real sudo.
Sorry, something went wrong.
Yes, that should do it. Something you want to implement? :)
I can do it.
@fluks Sure, unless @boxmein beats you to it ;)
No branches or pull requests
sudo
may be in different locations on different systems, perhaps implement a function to locate it. Perhaps the output ofwhich sudo
can be used.Right now
/usr/bin/sudo
is hardcoded.The text was updated successfully, but these errors were encountered: