| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -21,9 +21,9 @@ function Publish-Error {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					function Test-DownloadUrl {
 | 
					 | 
					 | 
					 | 
					function Test-DownloadUrl {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    param([string] $DownloadUrl)    
 | 
					 | 
					 | 
					 | 
					    param([string] $DownloadUrl)    
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    $authorizationHeaderValue = "Basic $AccessToken"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    $request = [System.Net.WebRequest]::Create($DownloadUrl)
 | 
					 | 
					 | 
					 | 
					    $request = [System.Net.WebRequest]::Create($DownloadUrl)
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    if ($AccessToken) {
 | 
					 | 
					 | 
					 | 
					    if ($AccessToken) {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        $authorizationHeaderValue = "Basic $AccessToken"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        $request.Headers.Add("Authorization", $authorizationHeaderValue)
 | 
					 | 
					 | 
					 | 
					        $request.Headers.Add("Authorization", $authorizationHeaderValue)
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    }
 | 
					 | 
					 | 
					 | 
					    }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    try {
 | 
					 | 
					 | 
					 | 
					    try {
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -41,7 +41,7 @@ if (-not (Test-Path $ManifestPath)) {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					Write-Host "Parsing manifest json content from '$ManifestPath'..."
 | 
					 | 
					 | 
					 | 
					Write-Host "Parsing manifest json content from '$ManifestPath'..."
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					try {
 | 
					 | 
					 | 
					 | 
					try {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    $manifestJson = $( Get-Content $ManifestPath ) | ConvertFrom-Json
 | 
					 | 
					 | 
					 | 
					    $manifestJson = Get-Content $ManifestPath | ConvertFrom-Json
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					} catch {
 | 
					 | 
					 | 
					 | 
					} catch {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    Publish-Error "Unable to parse manifest json content '$ManifestPath'" $_
 | 
					 | 
					 | 
					 | 
					    Publish-Error "Unable to parse manifest json content '$ManifestPath'" $_
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    exit 1
 | 
					 | 
					 | 
					 | 
					    exit 1
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
 
 |