mirror of
https://github.com/rustdesk/doc.rustdesk.com.git
synced 2025-06-21 02:08:12 +02:00
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:
parent
728359b25b
commit
34ccd57769
@ -89,7 +89,7 @@ if ($rdver -eq $RustDeskOnGitHub.Version)
|
|||||||
|
|
||||||
if (!(Test-Path C:\Temp))
|
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
|
cd C:\Temp
|
||||||
|
Loading…
x
Reference in New Issue
Block a user