mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-14 14:46:37 +00:00
Fix install-from-binstall-release.ps1
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
parent
234aa2ae7c
commit
60c641188f
1 changed files with 3 additions and 2 deletions
|
@ -20,8 +20,9 @@ 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"
|
||||
if (-not $?) {
|
||||
Try {
|
||||
Invoke-Expression "$tmpdir\cargo-binstall\cargo-binstall.exe --self-install"
|
||||
} Catch {
|
||||
Invoke-Expression "$tmpdir\cargo-binstall\cargo-binstall.exe -y --force cargo-binstall"
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue