Skip to content

Commit ac41e00

Browse files
danieljurekazure-sdk
authored andcommitted
Quote parameters
1 parent 1b1a9e9 commit ac41e00

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

eng/common/spelling/Invoke-Cspell.ps1

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ param(
5555
[switch] $LeavePackageInstallCache
5656
)
5757

58-
begin {
58+
begin {
5959
Set-StrictMode -Version 3.0
6060

6161
if (!(Get-Command npm -ErrorAction SilentlyContinue)) {
@@ -85,24 +85,24 @@ begin {
8585

8686
$filesToCheck = @()
8787
}
88-
process {
88+
process {
8989
$filesToCheck += $FileList
9090
}
91-
end {
91+
end {
9292
npm --prefix $PackageInstallCache ci | Write-Host
9393

9494
$command = "npm --prefix $PackageInstallCache exec --no -- cspell $JobType --config $CSpellConfigPath --no-must-find-files --root $SpellCheckRoot --file-list stdin"
9595
Write-Host $command
96-
$cspellOutput = $filesToCheck | npm --prefix $PackageInstallCache `
96+
$cspellOutput = $filesToCheck | npm '--prefix' $PackageInstallCache `
9797
exec `
98-
--no `
99-
-- `
98+
'--no' `
99+
'--' `
100100
cspell `
101101
$JobType `
102-
--config $CSpellConfigPath `
103-
--no-must-find-files `
104-
--root $SpellCheckRoot `
105-
--file-list stdin
102+
'--config' $CSpellConfigPath `
103+
'--no-must-find-files' `
104+
'--root' $SpellCheckRoot `
105+
'--file-list' stdin
106106

107107
if (!$LeavePackageInstallCache) {
108108
Write-Host "Cleaning up package install cache at $PackageInstallCache"

0 commit comments

Comments
 (0)