Closed KiruyaMomochi closed 4 years ago
Conceivably you could replace "sudo" with $SUDO and set the value only if the test command fails. Would you like to test and put together a patch for this?
Thanks for the fix, hopefully you're enjoying the package!
It's possible that some operating system doesn't have
sudo
installed. Then even the user isroot
, he may still get an error from the script:Hence, we should check if user have appropriate permissions by other methods. For example, the
-w
operator oftest
command.