From 4d18b4e7733d4e5df21baa9c2e57549537230661 Mon Sep 17 00:00:00 2001 From: Lucas Gravley <29484535+admiralAwkbar@users.noreply.github.com> Date: Thu, 2 Jul 2020 08:25:28 -0500 Subject: [PATCH] fixed early exit --- lib/worker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/worker.sh b/lib/worker.sh index 80251f32..20df3594 100755 --- a/lib/worker.sh +++ b/lib/worker.sh @@ -167,7 +167,7 @@ function LintCodebase() # Lint the file with the rules # ################################ # Need to run PowerShell commands using pwsh -c, also exit with exit code from inner subshell - LINT_CMD=$(cd "$GITHUB_WORKSPACE" || exit; pwsh -c "($LINTER_COMMAND $FILE)"; exit $? 2>&1) + LINT_CMD=$(cd "$GITHUB_WORKSPACE" || exit; pwsh -c "($LINTER_COMMAND $FILE; exit $?)" 2>&1) else ################################ # Lint the file with the rules #