mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-05-10 10:34:54 +02:00
Updated clean-repos.ps1
This commit is contained in:
parent
09475addd4
commit
eb8ba5bdfc
@ -7,7 +7,7 @@
|
||||
Specifies the path to the parent folder (current working dir by default)
|
||||
.EXAMPLE
|
||||
PS> ./clean-repos.ps1 C:\MyRepos
|
||||
⏳ (1) Searching for Git executable... git version 2.40.1
|
||||
⏳ (1) Searching for Git executable... git version 2.47.1
|
||||
⏳ (2) Checking parent folder 📂Repos... 28 subfolders found
|
||||
⏳ (3/30) Cleaning 📂base256unicode...
|
||||
...
|
||||
@ -46,7 +46,7 @@ try {
|
||||
if ($lastExitCode -ne "0") { throw "'git clean -xfd -f' in submodules failed with exit code $lastExitCode" }
|
||||
}
|
||||
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
|
||||
"✅ Cleaned $numFolders Git repos under 📂$parentDirName in $elapsed sec"
|
||||
"✅ Cleaned $numFolders Git repositories under 📂$parentDirName in $($elapsed)s."
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
Loading…
Reference in New Issue
Block a user