]> git.ipfire.org Git - thirdparty/dehydrated.git/commitdiff
fixed spurious return code from hook bricker...
authorLukas Schauer <lukas@schauer.so>
Wed, 14 Feb 2018 14:20:26 +0000 (15:20 +0100)
committerLukas Schauer <lukas@schauer.so>
Wed, 14 Feb 2018 14:20:26 +0000 (15:20 +0100)
dehydrated

index 829cd2520e389fa23af0e930d243d6b111cae264..3b2b78e6b0187c7da26b2bc50b209bf9222a1fe3 100755 (executable)
@@ -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