Unverified Commit a3479d3c authored by Mark Vander Stel's avatar Mark Vander Stel
Browse files

Merge branch 'Mice7R:feature/sudo-v'

PR #702
parents 10cd6af1 a8147523
......@@ -1331,9 +1331,10 @@ _lp_username_color() {
# Test the code with the commands:
# sudo id # sudo, enter your credentials
# sudo -K # revoke your credentials
# sudo -v # return non-zero when no credentials are cached
_lp_sudo_active() {
(( LP_ENABLE_SUDO )) || return 2
\sudo -n true 2>/dev/null || return 1
\sudo -nv 2>/dev/null || return 1
}
_lp_sudo_active_color() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment