Improve the output

This commit is contained in:
Markus Fleschutz
2022-01-18 21:02:19 +01:00
parent e8df5794cd
commit fd7b60182d
7 changed files with 31 additions and 34 deletions

View File

@ -1,6 +1,6 @@
<#
.SYNOPSIS
Pulls updates for all Git repositories in a folder (including submodules)
Pulls updates for all Git repositories in a folder
.DESCRIPTION
This PowerShell script pulls updates for all Git repositories in a folder (including submodules).
.PARAMETER ParentDir
@ -8,7 +8,7 @@
.EXAMPLE
PS> ./pull-repos C:\MyRepos
.NOTES
Author: Markus Fleschutz · License: CC0
Author: Markus Fleschutz / License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
@ -31,7 +31,7 @@ try {
[int]$Step = 1
foreach ($Folder in $Folders) {
$FolderName = (get-item "$Folder").Name
"($Step/$NumFolders) Pulling 📂$FolderName... "
"Step $Step/$NumFolders: Pulling 📂$FolderName... "
& git -C "$Folder" pull --recurse-submodules --jobs=4
if ($lastExitCode -ne "0") { write-warning "'git pull' in 📂$FolderName failed" }