install2
This commit is contained in:
@@ -2,6 +2,10 @@
|
||||
|
||||
## ASSERT Functions
|
||||
|
||||
function sudo_root {
|
||||
[[ "$UID" -ne 0 ]] && sudo -vp 'SUDO privilege required: '
|
||||
}
|
||||
|
||||
function assert_root {
|
||||
[[ "$UID" -ne 0 ]] && echo 'root privilege required' && return 1
|
||||
true
|
||||
|
||||
Reference in New Issue
Block a user