summaryrefslogtreecommitdiff
path: root/install.ps1
diff options
context:
space:
mode:
authorliv <mokou@fastmail.com>2023-06-15 10:56:53 +0200
committerGitHub <noreply@github.com>2023-06-15 10:56:53 +0200
commitc2264cabae976cf534be08942ff33f3a58f8795e (patch)
treefaf1ea81be1496ff2f07cb069219f1cf407f3096 /install.ps1
parentf3d0ba2f51b292dc308aabe4c2240eb8ed9a6f63 (diff)
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).
Diffstat (limited to 'install.ps1')
-rw-r--r--install.ps14
1 files changed, 2 insertions, 2 deletions
diff --git a/install.ps1 b/install.ps1
index 97980c5..7bab21f 100644
--- a/install.ps1
+++ b/install.ps1
@@ -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!"