=== modified file 'bin/confz' --- bin/confz 2014-06-19 18:10:46 +0000 +++ bin/confz 2014-06-19 18:06:47 +0000 @@ -107,9 +107,6 @@ vars_prev=( "${(kv)vars[@]}" ) vars=( ) - # print check start - confz_check_start $name "$@" - # parse variable assignments while (( $# )); do case $1 in @@ -129,20 +126,19 @@ # perform check & run if ! (($check_only)); then + confz_check_start $name "$@" if confz_${name}_check "$@"; then confz_check_ok $name else confz_check_fail $name confz_do "${do_command[@]}" "$@" fi - - # print check start - confz_check_start $name "$@" fi # perform check once again check_only_prev=$check_only check_only=1 + confz_check_start $name "$@" confz_${name}_check "$@" || die "$name: check failed with error $?" confz_check_ok $name check_only=$check_only_prev