From f94b574971fb1c7e702e2b759cc72a68077db4af Mon Sep 17 00:00:00 2001 From: Jason Bedard Date: Fri, 17 Feb 2023 15:49:24 -0800 Subject: [PATCH] fix: add exit code to js_binary debug info (#889) --- js/private/js_binary.sh.tpl | 2 ++ js/private/test/shellcheck_launcher.sh | 2 ++ 2 files changed, 4 insertions(+) mode change 100755 => 100644 js/private/test/shellcheck_launcher.sh diff --git a/js/private/js_binary.sh.tpl b/js/private/js_binary.sh.tpl index 0d0e65d57..384e462e1 100644 --- a/js/private/js_binary.sh.tpl +++ b/js/private/js_binary.sh.tpl @@ -108,6 +108,8 @@ _exit() { rm "$STDOUT_CAPTURE" fi + logf_debug "exit code: %s" "$EXIT_CODE" + exit $EXIT_CODE } diff --git a/js/private/test/shellcheck_launcher.sh b/js/private/test/shellcheck_launcher.sh old mode 100755 new mode 100644 index 030394c28..c21e5bba2 --- a/js/private/test/shellcheck_launcher.sh +++ b/js/private/test/shellcheck_launcher.sh @@ -119,6 +119,8 @@ _exit() { rm "$STDOUT_CAPTURE" fi + logf_debug "exit code: %s" "$EXIT_CODE" + exit $EXIT_CODE }