From 34ccd57769d75abfc7bf8063bb170edb7cb00c99 Mon Sep 17 00:00:00 2001 From: Robbe Van der Gucht Date: Fri, 14 Feb 2025 23:34:15 +0100 Subject: [PATCH] Don't create 'null' files on Windows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 ``` --- content/self-host/client-deployment/_index.en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/self-host/client-deployment/_index.en.md b/content/self-host/client-deployment/_index.en.md index 59f08ff..293da9b 100644 --- a/content/self-host/client-deployment/_index.en.md +++ b/content/self-host/client-deployment/_index.en.md @@ -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