Skip to content

Commit 6a306b9

Browse files
committed
Update asrfacet-rb-installer-windows.ps1
1 parent 651f7b8 commit 6a306b9

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

docs/website/web_assets/installers/asrfacet-rb-installer-windows.ps1

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function Get-RequiredPaths {
8989
}
9090
}
9191

92-
return $paths
92+
return @($paths)
9393
}
9494

9595
function Invoke-Step {
@@ -147,13 +147,14 @@ try {
147147

148148
Push-Location $repoDir
149149
try {
150-
$paths = Get-RequiredPaths -SelectedMode $selectedMode
150+
$paths = [string[]](Get-RequiredPaths -SelectedMode $selectedMode)
151151
& git sparse-checkout init --no-cone
152152
if ($LASTEXITCODE -ne 0) {
153153
throw "git sparse-checkout init failed."
154154
}
155155

156-
& git sparse-checkout set --no-cone @paths
156+
$setArgs = @("sparse-checkout", "set", "--no-cone") + $paths
157+
& git @setArgs
157158
if ($LASTEXITCODE -ne 0) {
158159
throw "git sparse-checkout set failed."
159160
}

0 commit comments

Comments
 (0)