aboutsummaryrefslogtreecommitdiff
path: root/rc.lib
diff options
context:
space:
mode:
Diffstat (limited to 'rc.lib')
-rw-r--r--rc.lib3
1 files changed, 2 insertions, 1 deletions
diff --git a/rc.lib b/rc.lib
index c224523..bff6f1f 100644
--- a/rc.lib
+++ b/rc.lib
@@ -33,8 +33,9 @@ log() {
out() {
- printf '%b%s \033[39m%s\033[m\n' "${3:-"\033[1;36m"}" "${2:-->}" "$1"
log "$1"
+ [ "$quiet" = 1 ] && return
+ printf '%b%s \033[39m%s\033[m\n' "${3:-"\033[1;36m"}" "${2:-->}" "$1"
}
err() { out "$1" "!>" "\033[1;31m" ;}