feat(package): hemar: conected to nix config
This commit is contained in:
@@ -115,7 +115,7 @@ log_allowed() {
|
||||
# log(level, text...)
|
||||
log() {
|
||||
delimetr=${DELIMETR:-' '};
|
||||
level="${1:?}"; shift
|
||||
level="${1:?}"
|
||||
log_allowed "$level" || return 0
|
||||
|
||||
case "$level" in
|
||||
@@ -125,9 +125,14 @@ log() {
|
||||
notice) color="$CYAN" ;;
|
||||
warn) color="$YELLOW" ;;
|
||||
error) color="$RED" ;;
|
||||
*) color="$WHITE" ;;
|
||||
*)
|
||||
color="$WHITE"
|
||||
NO_SHIFT=1
|
||||
;;
|
||||
esac
|
||||
|
||||
[ ${NO_SHIFT+x} ] || shift
|
||||
|
||||
|
||||
|
||||
# shellcheck disable=SC1003
|
||||
|
||||
Reference in New Issue
Block a user