commit d64295981ce175afa3446e03b7ba1fbe6fde0532
parent 06da96f2f0317c36d25c6f5bd90b4ebe603d4cb5
Author: Jan Pobrislo <ccx@webprojekty.cz>
Date: Thu, 19 Jun 2014 20:10:46 +0200
remove argument-passed variable trace inside the dep
Diffstat:
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/bin/confz b/bin/confz
@@ -107,6 +107,9 @@ require() {
vars_prev=( "${(kv)vars[@]}" )
vars=( )
+ # print check start
+ confz_check_start $name "$@"
+
# parse variable assignments
while (( $# )); do
case $1 in
@@ -126,19 +129,20 @@ require() {
# 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