mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-19 03:01:15 +01:00
Update fetch-repos.ps1
This commit is contained in:
parent
2fcfb4fad6
commit
4165e32852
@ -32,7 +32,7 @@ try {
|
|||||||
[int]$Step = 3
|
[int]$Step = 3
|
||||||
foreach ($Folder in $Folders) {
|
foreach ($Folder in $Folders) {
|
||||||
$FolderName = (Get-Item "$Folder").Name
|
$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
|
& 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" }
|
if ($lastExitCode -ne "0") { throw "'git fetch' in $Folder failed with exit code $lastExitCode" }
|
||||||
|
Loading…
Reference in New Issue
Block a user