This commit is contained in:
pvincent
2026-08-10 19:01:57 +04:00
parent 4ab03abf15
commit c883c0c36c
4 changed files with 42 additions and 21 deletions
+11
View File
@@ -1,5 +1,16 @@
## library of useful functions, usually prefixed with '_'
## ASSERT Functions
function assert_root {
[[ "$UID" -ne 0 ]] && echo 'root privilege required' && return 1
true
}
function assert_system_mode {
[[ -L "$MIAOU_BASH_DIR" ]] && >&2 echo "ERROR: development mode: $(realpath $MIAOU_BASH_DIR)" && return 3
true
}
## ===============
## ARRAY Functions
## ===============