This repository was archived by the owner on Jun 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed
Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -89,20 +89,21 @@ if (!(Test-Path $PACKAGES_CONFIG)) {
8989 }
9090 } else {
9191 Write-Verbose - Message " using local cake.packages.config..."
92- CopyItem $CAKE_PACKAGES_CONFIG $PACKAGES_CONFIG
92+ Copy-Item $CAKE_PACKAGES_CONFIG $PACKAGES_CONFIG
9393 }
9494}
9595
96+ # Let's just skip this check and always download nuget.exe
9697# Try find NuGet.exe in path if not exists
97- if (! (Test-Path $NUGET_EXE )) {
98- Write-Verbose - Message " Trying to find nuget.exe in PATH..."
99- $existingPaths = $Env: Path -Split ' ;' | Where-Object { Test-Path $_ }
100- $NUGET_EXE_IN_PATH = Get-ChildItem - Path $existingPaths - Filter " nuget.exe" | Select - First 1
101- if ($NUGET_EXE_IN_PATH -ne $null -and (Test-Path $NUGET_EXE_IN_PATH.FullName )) {
102- Write-Verbose - Message " Found in PATH at $ ( $NUGET_EXE_IN_PATH.FullName ) ."
103- $NUGET_EXE = $NUGET_EXE_IN_PATH.FullName
104- }
105- }
98+ # if (!(Test-Path $NUGET_EXE)) {
99+ # Write-Verbose -Message "Trying to find nuget.exe in PATH..."
100+ # $existingPaths = $Env:Path -Split ';' | Where-Object { Test-Path $_ }
101+ # $NUGET_EXE_IN_PATH = Get-ChildItem -Path $existingPaths -Filter "nuget.exe" | Select -First 1
102+ # if ($NUGET_EXE_IN_PATH -ne $null -and (Test-Path $NUGET_EXE_IN_PATH.FullName)) {
103+ # Write-Verbose -Message "Found in PATH at $($NUGET_EXE_IN_PATH.FullName)."
104+ # $NUGET_EXE = $NUGET_EXE_IN_PATH.FullName
105+ # }
106+ # }
106107
107108# Try download NuGet.exe if not exists
108109if (! (Test-Path $NUGET_EXE )) {
You can’t perform that action at this time.
0 commit comments