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).
pull/1564/head
liv 12 months ago committed by GitHub
parent f3d0ba2f51
commit c2264cabae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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!"

Loading…
Cancel
Save