Merge pull request #357 from github/FixErrors

fixed early exit
This commit is contained in:
Lukas Gravley 2020-07-02 08:33:19 -05:00 committed by GitHub
commit 8be900df6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 #