From 3478ceb58531e1a369179c67116af59c4950e6d0 Mon Sep 17 00:00:00 2001
From: Markus Fleschutz <markus.fleschutz@atcsim.de>
Date: Fri, 13 Jun 2025 10:37:10 +0200
Subject: [PATCH] Added cd-desktop.ps1

---
 scripts/cd-desktop.ps1 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/scripts/cd-desktop.ps1 b/scripts/cd-desktop.ps1
index fbe49385..563f3825 100755
--- a/scripts/cd-desktop.ps1
+++ b/scripts/cd-desktop.ps1
@@ -5,7 +5,7 @@
 	This PowerShell script changes the working directory to the user's desktop folder.
 .EXAMPLE
 	PS> ./cd-desktop.ps1
-	📂/home/Markus/Desktop (has 3 files and 0 folders)
+	📂/home/Markus/Desktop with 3 files and 0 folders entered.
 .LINK
 	https://github.com/fleschutz/PowerShell
 .NOTES
@@ -21,13 +21,13 @@ try {
 	} else {
 		$path = [Environment]::GetFolderPath('DesktopDirectory')
 		if (-not(Test-Path "$path" -pathType container)) {
-			throw "No desktop folder at $path yet"
+			throw "Desktop folder at $path does not exist yet"
 		}
 	}
 	Set-Location "$path"
 	$files = Get-ChildItem $path -attributes !Directory
 	$folders = Get-ChildItem $path -attributes Directory
-	"📂$path entered (has $($files.Count) files and $($folders.Count) folders)"
+	"📂$path with $($files.Count) files and $($folders.Count) folders entered."
 	exit 0 # success
 } catch {
 	"⚠️ Error: $($Error[0])"