mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-14 14:46:37 +00:00
Fi install-from-binstall-release.ps1
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
parent
60c641188f
commit
0cad38b82a
1 changed files with 2 additions and 3 deletions
|
@ -20,9 +20,8 @@ Invoke-WebRequest $url -OutFile $tmpdir\cargo-binstall.zip
|
|||
Expand-Archive -Force $tmpdir\cargo-binstall.zip $tmpdir\cargo-binstall
|
||||
Write-Host ""
|
||||
|
||||
Try {
|
||||
Invoke-Expression "$tmpdir\cargo-binstall\cargo-binstall.exe --self-install"
|
||||
} Catch {
|
||||
$ps = Start-Process -PassThru -Wait "$tmpdir\cargo-binstall\cargo-binstall.exe" "--self-install"
|
||||
if ($ps.ExitCode -eq 0) {
|
||||
Invoke-Expression "$tmpdir\cargo-binstall\cargo-binstall.exe -y --force cargo-binstall"
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue