1 changed file
Build | ||
Publish-AzDOArtifactFeed.ps1 | ||
Publish-AzDOArtifactFeed.ps1
/Build/Publish-AzDOArtifactFeed.ps1-3+3/Build/Publish-AzDOArtifactFeed.ps1
Add comment 1 [CmdletBinding()]
Add comment 2 param (
Add comment 3 Minus $PAT,
Add comment 4 Minus $SecretVar
Add comment 3 Plus [string]$PAT,
Add comment 4 Plus [string]$SecretVar
Add comment 5 )
Add comment 6
Add comment 7 # Variables
Add comment 30 # This is downloaded during Step 3, but could also be "C:\Users\USERNAME\AppData\Local\Microsoft\Windows\PowerShell\PowerShellGet\NuGet.exe"
Add comment 31 # if not running script as Administrator.
Add comment 32 $nugetPath = 'C:\ProgramData\Microsoft\Windows\PowerShell\PowerShellGet\NuGet.exe'
Add comment 33 Minus if (-not (Test-Path -Path $nugetPath)){
Add comment 33 Plus if (-not (Test-Path -Path $nugetPath)) {
Add comment 34 $nugetPath = Join-Path -Path $env:LOCALAPPDATA -ChildPath 'Microsoft\Windows\PowerShell\PowerShellGet\NuGet.exe'
Add comment 35 }
Add comment 36