mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-01 19:58:17 +02:00
Add step count to pull-repos.ps1
This commit is contained in:
parent
c2ff0bb396
commit
f1de21d8fc
@ -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" }
|
||||
|
Loading…
Reference in New Issue
Block a user