mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-22 23:32:10 -05:00
quoting powershell files
This commit is contained in:
parent
3bdeeae14e
commit
874f0d9ebc
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,7 @@ function LintCodebase() {
|
||||||
# Need to run PowerShell commands using pwsh -c, 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=$(
|
LINT_CMD=$(
|
||||||
cd "${WORKSPACE_PATH}" || exit
|
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
|
exit $? 2>&1
|
||||||
)
|
)
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
Loading…
Reference in a new issue