commit 117c71cafcb5df20e58683658fcbbd6875b733d5 parent 1948997a65aab3edd4ac84c885eb7185f3235152 Author: Jan Pobrislo <ccx@webprojekty.cz> Date: Thu, 1 Feb 2018 12:42:02 +0100 Distinguish need-action from failure when printing action traces Diffstat:
| M | bin/confz | | | 6 | +++++- |
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/bin/confz b/bin/confz @@ -31,7 +31,11 @@ confz_check_ok() { confz_check_fail() { confz_indent=${confz_indent% } - print -P "$confz_indent] $fg[yellow]$1$reset_color FAIL" >&2 + if (($check_only)); then + print -P "$confz_indent] $fg[red]$1$reset_color FAIL" >&2 + else + print -P "$confz_indent] $fg[yellow]$1$reset_color NEED" >&2 + fi } confz_do() {