Skip to content

Commit c9d10af

Browse files
committed
Use $Env:ProgramFiles
1 parent 28e9c0f commit c9d10af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,10 @@ else
137137
{
138138
if (!(Get-Command "patch" -ErrorAction SilentlyContinue))
139139
{
140-
if (Test-Path "C:\Program Files\Git\usr\bin\patch.exe")
140+
if (Test-Path "$Env:ProgramFiles\Git\usr\bin\patch.exe")
141141
{
142142
Write-Host "'patch' command not found, but Git is installed; adding Git usr\bin to PATH"
143-
$env:Path += ";C:\Program Files\Git\usr\bin"
143+
$env:Path += ";$Env:ProgramFiles\Git\usr\bin"
144144
}
145145
else
146146
{

0 commit comments

Comments
 (0)