Update windows.mdx

$env:HOME is nonexistent in Windows by default unless manually set, we use $env:USERPROFILE instead

Signed-off-by: MichaelGK <39009683+MichaelDavidGK@users.noreply.github.com>
This commit is contained in:
MichaelGK 2024-02-09 15:45:45 +00:00 committed by GitHub
parent 2420f61850
commit 187e41ba1d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,7 +29,7 @@ import styles from '@site/src/css/download-card.module.css';
```text
$source = Join-Path -Path $env:TEMP -ChildPath "zrok\zrok.exe"
$destination = Join-Path -Path $env:HOME -ChildPath "bin\zrok.exe"
$destination = Join-Path -Path $env:USERPROFILE -ChildPath "bin\zrok.exe"
New-Item -Path $destination -ItemType Directory -ErrorAction SilentlyContinue
Copy-Item -Path $source -Destination $destination
$env:path += ";"+$destination