From 4d3117057f61defac34480a0440e6b4b86c7740b Mon Sep 17 00:00:00 2001 From: Kevin Rowlandson Date: Wed, 1 Jul 2020 09:13:30 +0100 Subject: [PATCH] Update comment on corner case for PowerShell --- lib/worker.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/worker.sh b/lib/worker.sh index 15d89442..0c5e891f 100755 --- a/lib/worker.sh +++ b/lib/worker.sh @@ -203,7 +203,7 @@ function LintCodebase() ################################ # Lint the file with the rules # ################################ - # Need to append "'" to make the pwsh call syntax correct, also exit with exit code from inner subshell + # 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) else ################################ @@ -370,7 +370,7 @@ function TestCodebase() ################################ # Lint the file with the rules # ################################ - # Need to append "'" to make the pwsh call syntax correct, also exit with exit code from inner subshell + # 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)"; exit $? 2>&1) else ################################