devmode
This commit is contained in:
@@ -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
|
||||
## ===============
|
||||
|
||||
Reference in New Issue
Block a user