mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-05-17 04:17:00 +02:00
call exit_hook with error message (fixes #630)
This commit is contained in:
@@ -432,6 +432,7 @@ _sed() {
|
||||
# Print error message and exit with error
|
||||
_exiterr() {
|
||||
echo "ERROR: ${1}" >&2
|
||||
[[ -n "${HOOK:-}" ]] && "${HOOK}" "exit_hook" "${1}" || true
|
||||
exit 1
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user