Add step count to pull-repos.ps1

This commit is contained in:
Markus Fleschutz 2021-06-16 22:01:46 +02:00
parent c2ff0bb396
commit f1de21d8fc

View File

@ -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" }