From 4eb9167995f74190ab4971506fd6290d51c8101b Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Sun, 12 May 2013 17:00:04 +0000 Subject: [PATCH] functions.config: Fix call for check function. If a check function is not available don't crash with an error. --- functions.config | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/functions.config b/functions.config index c142428f..3854742e 100644 --- a/functions.config +++ b/functions.config @@ -143,7 +143,11 @@ function config_print() { function config_check() { # If there is a function defined that is called __check # we call that function - [ -n "$(type -t _check)" ] && _check || return $? + if [ -n "$(type -t _check)" ]; then + _check || return $? + fi + + return ${EXIT_OK} } function config_header() { -- 2.39.2