diff --git a/lib/worker.sh b/lib/worker.sh index ee0ae2da..367a7626 100755 --- a/lib/worker.sh +++ b/lib/worker.sh @@ -210,7 +210,7 @@ function LintCodebase() { # Need to run PowerShell commands using pwsh -c, also exit with exit code from inner subshell LINT_CMD=$( cd "${WORKSPACE_PATH}" || exit - pwsh -NoProfile -NoLogo -Command "${LINTER_COMMAND} ${FILE}; if (\${Error}.Count) { exit 1 }" + pwsh -NoProfile -NoLogo -Command "${LINTER_COMMAND} \"${FILE}\"; if (\${Error}.Count) { exit 1 }" exit $? 2>&1 ) ###############################################################################