Updated clean-repo.ps1

This commit is contained in:
Markus Fleschutz 2024-11-25 07:09:33 +01:00
parent 06bf9e3d8e
commit ca3a9dd069

View File

@ -12,7 +12,7 @@
(2/4) Checking local repository... C:\Repos\rust
(3/4) Removing untracked files in repository...
(4/4) Removing untracked files in submodules...
Cleaned up 📂rust repo in 2s.
Repo 📂rust successfully cleaned up in 2s.
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
@ -45,7 +45,7 @@ try {
if ($lastExitCode -ne "0") { throw "'git clean' in the submodules failed with exit code $lastExitCode" }
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
"Cleaned up 📂$repoName repo in $($elapsed)s."
"Repo 📂$repoName successfully cleaned up in $($elapsed)s."
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"