fix: undefined function call in error_function()
This commit is contained in:
parent
adc58ff421
commit
342d77c987
6
makedeb
6
makedeb
|
@ -282,10 +282,10 @@ function decompress_source_file {
|
||||||
error_function() {
|
error_function() {
|
||||||
# first exit all subshells, then print the error
|
# first exit all subshells, then print the error
|
||||||
if (( ! BASH_SUBSHELL )); then
|
if (( ! BASH_SUBSHELL )); then
|
||||||
error "A failure occurred in %s()." "$1"
|
err "A failure occurred in %s()." "$1"
|
||||||
plainerr "$(gettext "Aborting...")"
|
err "$(gettext "Aborting...")"
|
||||||
fi
|
fi
|
||||||
exit $E_USER_FUNCTION_FAILED
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# use less strict shell for custom functions
|
# use less strict shell for custom functions
|
||||||
|
|
Loading…
Reference in a new issue