Updated fetch-repos.ps1

This commit is contained in:
Markus Fleschutz 2024-09-10 19:54:26 +02:00
parent b8d9a4dc19
commit 1243fced11

View File

@ -7,7 +7,7 @@
Specifies the path to the parent folder Specifies the path to the parent folder
.EXAMPLE .EXAMPLE
PS> ./fetch-repos.ps1 C:\MyRepos PS> ./fetch-repos.ps1 C:\MyRepos
(1) Searching for Git executable... git version 2.42.0 (1) Searching for Git executable... git version 2.43.0
(2) Checking parent folder... 33 subfolders (2) Checking parent folder... 33 subfolders
(3/35) Fetching into 📂base256unicode... (3/35) Fetching into 📂base256unicode...
... ...
@ -44,7 +44,7 @@ try {
$step++ $step++
} }
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds [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 exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"