From d5d33dc2b106a0871ac4d2ed54dacbf1a61cd6ca Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Fri, 7 May 2021 14:57:54 +0200 Subject: [PATCH] Improve clean-repos.ps1 --- Scripts/clean-repos.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Scripts/clean-repos.ps1 b/Scripts/clean-repos.ps1 index f9df8850..bdf39805 100755 --- a/Scripts/clean-repos.ps1 +++ b/Scripts/clean-repos.ps1 @@ -16,7 +16,8 @@ try { if ($lastExitCode -ne "0") { throw "Can't execute 'git' - make sure Git is installed and available" } $Folders = (get-childItem "$ParentDir" -attributes Directory) - "Cleaning $($Folders.Count) Git repositories from untracked files ..." + $ParentDirName = (get-item "$ParentDir").Name + "Cleaning $($Folders.Count) Git repositories at 📂$ParentDirName from untracked files ..." foreach ($Folder in $Folders) { $FolderName = (get-item "$Folder").Name @@ -30,7 +31,7 @@ try { } [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds - "✔️ cleaned $($Folders.Count) Git repositories at $ParentDir in $Elapsed sec." + "✔️ cleaned $($Folders.Count) Git repositories at 📂$ParentDirName in $Elapsed sec." exit 0 } catch {