From 342d77c9879c0ab0e001f43f94a0937c0aaff5bb Mon Sep 17 00:00:00 2001 From: leafee98 Date: Fri, 30 Jun 2023 22:08:51 +0800 Subject: [PATCH] fix: undefined function call in error_function() --- makedeb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/makedeb b/makedeb index 94cb8d9..cadea9c 100755 --- a/makedeb +++ b/makedeb @@ -282,10 +282,10 @@ function decompress_source_file { error_function() { # first exit all subshells, then print the error if (( ! BASH_SUBSHELL )); then - error "A failure occurred in %s()." "$1" - plainerr "$(gettext "Aborting...")" + err "A failure occurred in %s()." "$1" + err "$(gettext "Aborting...")" fi - exit $E_USER_FUNCTION_FAILED + exit 1 } # use less strict shell for custom functions