From 35e61fea221f24e6076eaf3201420776eedb8020 Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Thu, 13 Jun 2024 23:38:25 +1000 Subject: [PATCH] Fix use of env var in install-from-binstall-release.ps1 --- install-from-binstall-release.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-from-binstall-release.ps1 b/install-from-binstall-release.ps1 index 02a350d96..a06b25e45 100644 --- a/install-from-binstall-release.ps1 +++ b/install-from-binstall-release.ps1 @@ -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