From f1de21d8fcb2ae050c25faf701ecaf2238aaf212 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Wed, 16 Jun 2021 22:01:46 +0200 Subject: [PATCH] Add step count to pull-repos.ps1 --- Scripts/pull-repos.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Scripts/pull-repos.ps1 b/Scripts/pull-repos.ps1 index 11c71942..0d02013e 100755 --- a/Scripts/pull-repos.ps1 +++ b/Scripts/pull-repos.ps1 @@ -20,9 +20,11 @@ try { $ParentDirName = (get-item "$ParentDir").Name "Found $FolderCount subfolders under 📂$ParentDirName..." + [int]$Step = 0 foreach ($Folder in $Folders) { $FolderName = (get-item "$Folder").Name - "🢃 Pulling 📂$FolderName..." + $Step++ + "🢃 Pulling 📂$FolderName (step $Step/$FolderCount) ..." & git -C "$Folder" pull --recurse-submodules --jobs=4 if ($lastExitCode -ne "0") { write-warning "'git pull' on 📂$FolderName failed" }