confz

git mirror of https://ccx.te2000.cz/bzr/confz
git clone https://ccx.te2000.cz/git/confz
Log | Files | Refs

commit 34a53c3db4210f8a96547096d11c35424e8f8b81
parent a6f720939f7e9cc0ef34f066ed3fb5776f91ebed
Author: Jan Pobrislo <ccx@webprojekty.cz>
Date:   Thu, 19 Jun 2014 18:58:23 +0200

trace printing fixes
Diffstat:
Mbin/confz | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bin/confz b/bin/confz @@ -13,13 +13,13 @@ check_only=0 # helper that prints out error message and exits die() { - print -r - "$fg[red]*$fg[default] $@" >&2 + print -r - "$fg_bold[red]*$reset_color $@" >&2 exit 1 } # trace-printing helpers confz_check_start() { - print -r - "${confz_indent}checking $fg_bold$1$fg_no_bold ${(@q)argv[2,-1]} $fg[black][$reset_color" + print -r - "${confz_indent}checking $fg_bold[default]$1$reset_color ${(@q)argv[2,-1]} ${reset_color}[" confz_indent+=" " } @@ -106,7 +106,7 @@ require() { if confz_${name}_check "$@"; then confz_check_ok $name else - confz_check_fail + confz_check_fail $name confz_do "${do_command[@]}" "$@" fi fi