mirror of
				https://github.com/shivammathur/setup-php.git
				synced 2025-10-30 23:07:56 +07:00 
			
		
		
		
	Fix Add-Path for self-hosted Windows
This commit is contained in:
		| @ -88,6 +88,7 @@ Function Add-Path { | ||||
|   } | ||||
|   if ($env:GITHUB_PATH) { | ||||
|     Add-Content $PathItem -Path $env:GITHUB_PATH -Encoding utf8 | ||||
|     $env:PATH += "$PathItem;" | ||||
|   } else { | ||||
|     $newPath = (Get-ItemProperty -Path 'hkcu:\Environment' -Name PATH).Path.replace("$PathItem;", '') | ||||
|     $newPath = $PathItem + ';' + $newPath | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Dino Infantino
					Dino Infantino