From d56d1b7346189ffd50f8a9f15f7d660c32b11b9e Mon Sep 17 00:00:00 2001 From: Kevin Rowlandson Date: Fri, 3 Jul 2020 14:46:15 +0100 Subject: [PATCH] Minor fix(1) for TestCodebase [ARM] --- lib/worker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/worker.sh b/lib/worker.sh index 9f498d8a..bc0fe066 100755 --- a/lib/worker.sh +++ b/lib/worker.sh @@ -341,7 +341,7 @@ function TestCodebase() { # Need to run PowerShell commands using pwsh -c, also exit with exit code from inner subshell LINT_CMD=$( cd "$GITHUB_WORKSPACE/$TEST_CASE_FOLDER" || exit - pwsh -c "($LINTER_COMMAND $FILE)" + pwsh -NoProfile -NoLogo -Command "$LINTER_COMMAND $FILE; if (\$Error.Count) { exit 1 }" exit $? 2>&1 ) else