From f802f9ed9b77a3af662111fd5e01e04d9011b4e8 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Thu, 12 Sep 2024 07:21:20 +0200 Subject: [PATCH] Updated fetch-repos.ps1 --- scripts/fetch-repos.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/fetch-repos.ps1 b/scripts/fetch-repos.ps1 index 441bcf70..b611d3d1 100755 --- a/scripts/fetch-repos.ps1 +++ b/scripts/fetch-repos.ps1 @@ -7,9 +7,9 @@ Specifies the path to the parent folder .EXAMPLE PS> ./fetch-repos.ps1 C:\MyRepos - ⏳ (1) Searching for Git executable... git version 2.42.0 + ⏳ (1) Searching for Git executable... git version 2.46.0.windows.1 ⏳ (2) Checking parent folder... 33 subfolders - ⏳ (3/35) Fetching into 📂base256unicode... + ⏳ (3/35) Fetching into 📂curl... ... .LINK https://github.com/fleschutz/PowerShell @@ -39,12 +39,12 @@ try { Write-Host "⏳ ($step/$($numFolders + 2)) Fetching into 📂$folderName...`t`t" & git -C "$folder" fetch --all --recurse-submodules --prune --prune-tags --force - if ($lastExitCode -ne "0") { throw "'git fetch --all' in $folder failed with exit code $lastExitCode" } + if ($lastExitCode -ne "0") { throw "'git fetch --all' in 📂$folder failed with exit code $lastExitCode" } $step++ } [int]$elapsed = $stopWatch.Elapsed.TotalSeconds - "✔️ Fetched updates into $numFolders repos under 📂$parentDirPathName in $elapsed sec" + "✔️ Fetched into $numFolders repos under 📂$parentDirPathName in $($elapsed)s." exit 0 # success } catch { "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"