1
0
mirror of https://github.com/fleschutz/PowerShell.git synced 2025-07-06 07:30:04 +02:00

Updated clean-repo.ps1

This commit is contained in:
Markus Fleschutz
2024-06-20 07:55:13 +02:00
parent 89f1847607
commit ad41aa48b2

@ -12,7 +12,7 @@
⏳ (2/4) Checking local repository... C:\Repos\rust ⏳ (2/4) Checking local repository... C:\Repos\rust
⏳ (3/4) Removing untracked files in repository... ⏳ (3/4) Removing untracked files in repository...
⏳ (4/4) Removing untracked files in submodules... ⏳ (4/4) Removing untracked files in submodules...
✔️ Cleaned up repository 📂rust in 2s. ✔️ Cleaned up 📂rust repository in 2s.
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -45,7 +45,7 @@ try {
if ($lastExitCode -ne "0") { throw "'git clean' in the submodules failed with exit code $lastExitCode" } if ($lastExitCode -ne "0") { throw "'git clean' in the submodules failed with exit code $lastExitCode" }
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds [int]$elapsed = $stopWatch.Elapsed.TotalSeconds
"✔️ Cleaned up repository 📂$repoName in $($elapsed)s." "✔️ Cleaned up 📂$repoName repository 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])"