From a6e6aa74457c146e3a7de95c135b98e690dc0d41 Mon Sep 17 00:00:00 2001 From: Lukas Schauer Date: Wed, 14 Feb 2018 15:20:26 +0100 Subject: [PATCH] fixed spurious return code from hook bricker... --- dehydrated | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.47.2