From af7642be7f271814681e65c74befa5b543e58fd7 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Tue, 8 Jul 2025 16:00:45 +0200 Subject: [PATCH] Updated cd-etc.ps1 --- scripts/cd-etc.ps1 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/cd-etc.ps1 b/scripts/cd-etc.ps1 index 1b5a7912..0135d36b 100755 --- a/scripts/cd-etc.ps1 +++ b/scripts/cd-etc.ps1 @@ -2,10 +2,10 @@ .SYNOPSIS Changes to the /etc directory .DESCRIPTION - This PowerShell script changes the working directory to the /etc directory. + This PowerShell script changes the current working directory to the /etc directory. .EXAMPLE - PS> ./cd-etc - 📂C:\Windows\System32\drivers\etc (has 5 files and 0 folders) + PS> ./cd-etc.ps1 + 📂C:\Windows\System32\drivers\etc with 5 files and 0 folders entered. .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -24,9 +24,9 @@ try { 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])" + "⚠️ ERROR: $($Error[0])" exit 1 }