From: Lukas Schauer Date: Wed, 14 Feb 2018 14:20:26 +0000 (+0100) Subject: fixed spurious return code from hook bricker... X-Git-Tag: v0.6.0~7 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=a6e6aa74457c146e3a7de95c135b98e690dc0d41;p=thirdparty%2Fdehydrated.git fixed spurious return code from hook bricker... --- diff --git a/dehydrated b/dehydrated index 829cd25..3b2b78e 100755 --- a/dehydrated +++ b/dehydrated @@ -83,7 +83,9 @@ reset_configvars() { hookscript_bricker_hook() { # Hook scripts should ignore any hooks they don't know. # Calling a random hook to make this clear to the hook script authors... - [[ -n "${HOOK}" ]] && "${HOOK}" "this_hookscript_is_broken__dehydrated_is_working_fine__please_ignore_unknown_hooks_in_your_script" + if [[ -n "${HOOK}" ]]; then + "${HOOK}" "this_hookscript_is_broken__dehydrated_is_working_fine__please_ignore_unknown_hooks_in_your_script" + fi } # verify configuration values