mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-25 06:40:03 +00:00
Use $Env:CARGO_HOME in ps1 install script (#1509)
This commit is contained in:
parent
05f90e651d
commit
469fc1783e
1 changed files with 3 additions and 2 deletions
|
@ -18,8 +18,9 @@ Write-Host ""
|
|||
Invoke-Expression "$tmpdir\cargo-binstall\cargo-binstall.exe -y --force cargo-binstall"
|
||||
Remove-Item -Force $tmpdir\cargo-binstall.zip
|
||||
Remove-Item -Recurse -Force $tmpdir\cargo-binstall
|
||||
if ($Env:Path -split ";" -notcontains "$HOME\.cargo\bin") {
|
||||
$cargo_home = if ($Env:CARGO_HOME -ne $null) { $Env:CARGO_HOME } else { "$HOME\.cargo" }
|
||||
if ($Env:Path -split ";" -notcontains "$cargo_home\bin") {
|
||||
Write-Host ""
|
||||
Write-Host "Your path is missing $HOME\.cargo\bin, you might want to add it." -ForegroundColor Red
|
||||
Write-Host "Your path is missing $cargo_home\bin, you might want to add it." -ForegroundColor Red
|
||||
Write-Host ""
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue