mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-23 18:38:19 +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
|
$ParentDirName = (get-item "$ParentDir").Name
|
||||||
"Found $FolderCount subfolders under 📂$ParentDirName..."
|
"Found $FolderCount subfolders under 📂$ParentDirName..."
|
||||||
|
|
||||||
|
[int]$Step = 0
|
||||||
foreach ($Folder in $Folders) {
|
foreach ($Folder in $Folders) {
|
||||||
$FolderName = (get-item "$Folder").Name
|
$FolderName = (get-item "$Folder").Name
|
||||||
"🢃 Pulling 📂$FolderName..."
|
$Step++
|
||||||
|
"🢃 Pulling 📂$FolderName (step $Step/$FolderCount) ..."
|
||||||
|
|
||||||
& git -C "$Folder" pull --recurse-submodules --jobs=4
|
& git -C "$Folder" pull --recurse-submodules --jobs=4
|
||||||
if ($lastExitCode -ne "0") { write-warning "'git pull' on 📂$FolderName failed" }
|
if ($lastExitCode -ne "0") { write-warning "'git pull' on 📂$FolderName failed" }
|
||||||
|
Loading…
Reference in New Issue
Block a user