]> git.ipfire.org Git - thirdparty/dehydrated.git/commitdiff
Fixed small unassigned variable issue 795/head
authorLukas Schauer <lukas@schauer.so>
Sat, 12 Dec 2020 02:12:13 +0000 (03:12 +0100)
committerLukas Schauer <lukas@schauer.so>
Sat, 12 Dec 2020 02:12:13 +0000 (03:12 +0100)
dehydrated

index 92c50e27939c214c0745bcda550d500bdf15d88b..308a5b70cc685a2bcc86974beb3ae82b12f662f6 100755 (executable)
@@ -738,7 +738,7 @@ _exiterr() {
   if [ -n "${1:-}" ]; then
     echo "ERROR: ${1}" >&2
   fi
-  [[ "${skip_exit_hook:-no}" = "no" ]] && [[ -n "${HOOK:-}" ]] && ("${HOOK}" "exit_hook" "${1}" || echo 'exit_hook returned with non-zero exit code!' >&2)
+  [[ "${skip_exit_hook:-no}" = "no" ]] && [[ -n "${HOOK:-}" ]] && ("${HOOK}" "exit_hook" "${1:-}" || echo 'exit_hook returned with non-zero exit code!' >&2)
   exit 1
 }