From: Stefan Schantl Date: Sun, 12 May 2013 17:00:04 +0000 (+0000) Subject: functions.config: Fix call for check function. X-Git-Tag: 007~135^2~3 X-Git-Url: http://git.ipfire.org/?p=people%2Fms%2Fnetwork.git;a=commitdiff_plain;h=4eb9167995f74190ab4971506fd6290d51c8101b functions.config: Fix call for check function. If a check function is not available don't crash with an error. --- 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() {