Update fetch-repos.ps1

This commit is contained in:
Markus Fleschutz 2022-11-18 17:19:22 +01:00
parent 2fcfb4fad6
commit 4165e32852

View File

@ -32,7 +32,7 @@ try {
[int]$Step = 3
foreach ($Folder in $Folders) {
$FolderName = (Get-Item "$Folder").Name
"⏳ ($Step/$($NumFolders + 2)) Fetching into 📂$FolderName..."
Write-Host "⏳ ($Step/$($NumFolders + 2)) Fetching into 📂$FolderName..." -noNewline
& git -C "$Folder" fetch --all --recurse-submodules --prune --prune-tags --force
if ($lastExitCode -ne "0") { throw "'git fetch' in $Folder failed with exit code $lastExitCode" }
@ -45,4 +45,4 @@ try {
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}
}