mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-18 18:51:05 +01:00
Improve output of fetch-repos.ps1
This commit is contained in:
parent
67845aaf95
commit
f37ada4a70
@ -18,10 +18,12 @@ try {
|
|||||||
|
|
||||||
[int]$Count = 0
|
[int]$Count = 0
|
||||||
get-childItem $ParentDir -attributes Directory | foreach-object {
|
get-childItem $ParentDir -attributes Directory | foreach-object {
|
||||||
|
"⏳ Fetching updates for Git repository 📂$($_.Name) ..."
|
||||||
|
|
||||||
set-location "$($_.FullName)"
|
set-location "$($_.FullName)"
|
||||||
|
|
||||||
& "$PSScriptRoot/fetch-repo.ps1"
|
& git fetch --all --recurse-submodules --jobs=4
|
||||||
if ($lastExitCode -ne "0") { throw "Script 'fetch-repo.ps1' failed" }
|
if ($lastExitCode -ne "0") { throw "'git fetch' failed" }
|
||||||
|
|
||||||
set-location ..
|
set-location ..
|
||||||
$Count++
|
$Count++
|
||||||
|
Loading…
Reference in New Issue
Block a user