fix sudo_root for root
This commit is contained in:
+2
-1
@@ -1,7 +1,8 @@
|
||||
## library of useful functions, usually prefixed with '_'
|
||||
|
||||
function sudo_root {
|
||||
[[ "$UID" -ne 0 ]] && sudo -vp 'SUDO privilege required: ' 2>/dev/null
|
||||
[[ $UID == 0 ]] && return
|
||||
sudo -vp 'SUDO privilege required: ' 2>/dev/null
|
||||
}
|
||||
|
||||
## ASSERT Functions
|
||||
|
||||
Reference in New Issue
Block a user