index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Eli Schwartz <eschwartz@archlinux.org> | 2020-06-02 17:50:24 -0400 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2020-06-11 10:54:54 +1000 |
commit | bf458cced7c0845f7b6fabb887d3878ae4cd51b2 (patch) | |
tree | 974ba5f685f644d160e1535283565f523af3c40e /scripts/libmakepkg/util/message.sh.in | |
parent | 381e11375569fa7588b1297e0e744749bdafe8f5 (diff) |
-rw-r--r-- | scripts/libmakepkg/util/message.sh.in | 8 |
diff --git a/scripts/libmakepkg/util/message.sh.in b/scripts/libmakepkg/util/message.sh.in index 061bd858..625f11b1 100644 --- a/scripts/libmakepkg/util/message.sh.in +++ b/scripts/libmakepkg/util/message.sh.in @@ -43,12 +43,20 @@ colorize() { readonly ALL_OFF BOLD BLUE GREEN RED YELLOW } +# plainerr/plainerr are primarily used to continue a previous message on a new +# line, depending on whether the first line is a regular message or an error +# output + plain() { (( QUIET )) && return local mesg=$1; shift printf "${BOLD} ${mesg}${ALL_OFF}\n" "$@" } +plainerr() { + plain "$@" >&2 +} + msg() { (( QUIET )) && return local mesg=$1; shift |