Skip to content

Commit 82365c9

Browse files
committed
Fix the command line args for PSNativeCommandArgumentPassing Standard
1 parent e95bcb1 commit 82365c9

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

eng/scripts/docs/Docs-ToC.ps1

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@ function Get-WhlFile {
66
[Parameter(Mandatory=$true)] [string]$Destination,
77
[Parameter(Mandatory=$false)] [string]$ExtraIndexUrl = ""
88
)
9-
$pipCommandArgs = ""
9+
10+
$LibArg= "$Library==$Version"
1011
if ($ExtraIndexUrl) {
11-
$pipCommandArgs += "--extra-index-url=$ExtraIndexUrl "
12+
$ExtraIndexArg = "--extra-index-url=$ExtraIndexUrl"
13+
Write-Host "python -m pip download --quiet --only-binary=:all: --dest $Destination --no-deps $ExtraIndexArg $LibArg"
14+
python -m pip download --quiet --only-binary=:all: --dest $Destination --no-deps $ExtraIndexArg $LibArg
15+
} else {
16+
Write-Host "python -m pip download --quiet --only-binary=:all: --dest $Destination --no-deps $LibArg"
17+
python -m pip download --quiet --only-binary=:all: --dest $Destination --no-deps $LibArg
1218
}
13-
$pipCommandArgs += "$Library==$Version"
14-
15-
# download the whl file
16-
Write-Host "python -m pip download --quiet --only-binary=:all: --dest $Destination --no-deps $pipCommandArgs"
17-
python -m pip download --quiet --only-binary=:all: --dest $Destination --no-deps $pipCommandArgs
1819
if($LASTEXITCODE -ne 0) {
1920
return $false
2021
}

0 commit comments

Comments
 (0)