Skip to content

Commit

Permalink
Fix use of env var in install-from-binstall-release.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
NobodyXu authored Jun 13, 2024
1 parent 5494daf commit 35e61fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install-from-binstall-release.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Remove-Item -Recurse -Force $tmpdir\cargo-binstall
$cargo_home = if ($Env:CARGO_HOME -ne $null) { $Env:CARGO_HOME } else { "$HOME\.cargo" }
if ($Env:Path -split ";" -notcontains "$cargo_home\bin") {
if (($Env:CI -ne $null) -and ($Env:GITHUB_PATH -ne $null)) {
Add-Content -Path "$GITHUB_PATH" -Value "$cargo_home\bin"
Add-Content -Path "$Env:GITHUB_PATH" -Value "$cargo_home\bin"
} else {
Write-Host ""
Write-Host "Your path is missing $cargo_home\bin, you might want to add it." -ForegroundColor Red
Expand Down

0 comments on commit 35e61fe

Please sign in to comment.