init

Init system
git clone git://git.carbslinux.org/init
Log | Files | Refs | README | LICENSE

commit dcd4d646aeb5115e6bf686a39733a3f7207d5f4d
parent c96d98e1e0d163b3bfaf2799e1a795dd487bef93
Author: Cem Keylan <cem@ckyln.com>
Date:   Thu, 13 Aug 2020 11:38:17 +0300

out(): If quiet is specified, stop printing messages

Diffstat:
Mrc.lib | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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" ;}