Skip to content

Commit

Permalink
use env: prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
jonapich committed Jul 15, 2024
1 parent 179fcec commit cd5a460
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions get-latest-tgf.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ Write-Host "Installing tgf v$($LATEST_VERSION) in the current directory ($(Get-L
Invoke-WebRequest "https://github.com/coveo/tgf/releases/download/v$($LATEST_VERSION)/tgf_$($LATEST_VERSION)_windows_64-bits.zip" -OutFile $ZipFile
Expand-Archive -Path $ZipFile -DestinationPath $TempTgfFolder

Write-Host "Copying executable to $($TGF_PATH)"
Copy-Item $TempTgfPath -Destination $TGF_PATH -Force
Write-Host "Copying executable to $(${env:TGF_PATH})"
Copy-Item $TempTgfPath -Destination ${env:TGF_PATH} -Force

Remove-Item $ZipFile
Remove-Item $TempTgfFolder -Recurse
Expand Down

0 comments on commit cd5a460

Please sign in to comment.