commit 6b4a791835ec4059330065b71702e579983a8c32
parent 9ef38040cc5917c2f274cf48733f13502b99fa21
Author: Jan Pobrislo <ccx@webprojekty.cz>
Date: Mon, 20 Nov 2017 12:37:08 +0100
Report undefined functions.
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/bin/confz b/bin/confz
@@ -146,6 +146,9 @@ require() {
# clear fail_reason
fail_reason=''
+ if ! (($+functions[confz_${name}_check])); then
+ die "$name: Function confz_${name}_check not defined."
+ fi
# perform check - run - check
if confz_${name}_check "$@"; then
confz_check_ok $name