This commit is contained in:
pvincent
2026-08-18 11:45:37 +04:00
parent f8f4940d44
commit b488427332
3 changed files with 12 additions and 18 deletions
+4
View File
@@ -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