diff options
| author | mokou <mokou@posteo.de> | 2020-02-27 19:19:31 +0100 |
|---|---|---|
| committer | mokou <mokou@posteo.de> | 2020-02-27 19:19:31 +0100 |
| commit | 3d9b03c52b8dc51b140757f6fd25ad87b5782ef5 (patch) | |
| tree | 52a1089bb14899dee6bd8a6e2ac3527b3a07791b /install.ps1 | |
| parent | a03d9655a85351557c466f144a76d6bebfa27256 (diff) | |
fix: Re-add cloning the repo to install scripts
Diffstat (limited to 'install.ps1')
| -rw-r--r-- | install.ps1 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/install.ps1 b/install.ps1 index 04ea4a0..6504e69 100644 --- a/install.ps1 +++ b/install.ps1 @@ -73,8 +73,12 @@ if (!($LASTEXITCODE -eq 0)) { $version = Invoke-WebRequest -UseBasicParsing https://api.github.com/repos/rust-lang/rustlings/releases/latest ` | ConvertFrom-Json | Select-Object -ExpandProperty tag_name +Write-Host "Checking out version $version..." +Set-Location $path +git checkout -q tags/$version + Write-Host "Installing the 'rustlings' executable..." -cargo install --force --git https://github.com/rust-lang/rustlings --tag $version +cargo install --force --path . if (!(Get-Command rustlings -ErrorAction SilentlyContinue)) { Write-Host "WARNING: Please check that you have '~/.cargo/bin' in your PATH environment variable!" } |
