From 874f0d9ebc7c8bd035e149317a57b7ee841d6cca Mon Sep 17 00:00:00 2001 From: Lucas Gravley <29484535+admiralAwkbar@users.noreply.github.com> Date: Tue, 10 Nov 2020 11:23:15 -0600 Subject: [PATCH] quoting powershell files --- lib/worker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) ###############################################################################