From 225a1ae9025799e175dc39e108bb2a7cc78f3633 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Mon, 17 Mar 2025 10:40:51 +0100 Subject: [PATCH] Updated cd-repos.ps1 and cd-scripts.ps1 --- scripts/cd-repos.ps1 | 2 +- scripts/cd-scripts.ps1 | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/cd-repos.ps1 b/scripts/cd-repos.ps1 index 4a2845db..cbcd3e0e 100755 --- a/scripts/cd-repos.ps1 +++ b/scripts/cd-repos.ps1 @@ -29,7 +29,7 @@ try { $path = Resolve-Path $path Set-Location "$path" $subfolders = Get-ChildItem $path -attributes Directory - "📂$path entered, it has $($subfolders.Count) subfolders." + "📂$path entered, containing $($subfolders.Count) subfolders." exit 0 # success } catch { "⚠️ Error: $($Error[0])" diff --git a/scripts/cd-scripts.ps1 b/scripts/cd-scripts.ps1 index d17d8756..68bb4831 100755 --- a/scripts/cd-scripts.ps1 +++ b/scripts/cd-scripts.ps1 @@ -15,8 +15,9 @@ try { $path = Resolve-Path "$PSScriptRoot" if (-not(Test-Path "$path" -pathType container)) { throw "PowerShell scripts folder at 📂$path doesn't exist (yet)" } + $files = Get-ChildItem $path -attributes !Directory + "📂$path entered, containing $($files.Count) scripts." Set-Location "$path" - "📂$path" exit 0 # success } catch { "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"