Don't create 'null' files on Windows

Suppressing emitted STDOUT from cmdlets is done with by piping to `Out-Null` instead of redirecting to `null`. That last option will create a new file on Windows.

```
# Don't do 
mkdir test > null

# Do 
mkdir test | Out-Null
```
This commit is contained in:
Robbe Van der Gucht 2025-02-14 23:34:15 +01:00 committed by GitHub
parent 728359b25b
commit 34ccd57769
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -89,7 +89,7 @@ if ($rdver -eq $RustDeskOnGitHub.Version)
if (!(Test-Path C:\Temp))
{
New-Item -ItemType Directory -Force -Path C:\Temp > null
New-Item -ItemType Directory -Force -Path C:\Temp | Out-Null
}
cd C:\Temp