fix: install into $home on windows for now

Stopgap measure so that people stop installing into System32 (since that's the default Powershell elevated prompt directory for some reason).
This commit is contained in:
liv 2023-06-15 10:56:53 +02:00 committed by GitHub
parent f3d0ba2f51
commit c2264cabae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/env pwsh
#Requires -Version 5
param($path = "$pwd/rustlings")
param($path = "$home/rustlings")
Write-Host "Let's get you set up with Rustlings!"
@ -91,4 +91,4 @@ if (!$clippy) {
rustup component add clippy
}
Write-Host "All done! Run 'rustlings' to get started."
Write-Host "All done! Navigate to $path and run 'rustlings' to get started!"