mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-14 14:46:37 +00:00
Apply suggestions from code review
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
parent
5cc8d051d4
commit
15e775a916
2 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ $url = "$base_url$arch-pc-windows-msvc.zip"
|
|||
Invoke-WebRequest $url -OutFile $tmpdir\cargo-binstall.zip
|
||||
Expand-Archive -Force $tmpdir\cargo-binstall.zip $tmpdir\cargo-binstall
|
||||
Write-Host ""
|
||||
Invoke-Expression "$tmpdir\cargo-binstall\cargo-binstall.exe --self-install"
|
||||
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
|
||||
$cargo_home = if ($Env:CARGO_HOME -ne $null) { $Env:CARGO_HOME } else { "$HOME\.cargo" }
|
||||
|
|
|
@ -36,7 +36,7 @@ else
|
|||
exit 1
|
||||
fi
|
||||
|
||||
./cargo-binstall --self-install
|
||||
./cargo-binstall -y --force cargo-binstall
|
||||
|
||||
CARGO_HOME="${CARGO_HOME:-$HOME/.cargo}"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue