mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-15 01:10:09 +01:00
Update fetch-repos.ps1
This commit is contained in:
parent
2fcfb4fad6
commit
4165e32852
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user