mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-03 13:23:56 +01:00
Updated clean-repo.ps1
This commit is contained in:
parent
06bf9e3d8e
commit
ca3a9dd069
@ -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])"
|
||||
|
Loading…
Reference in New Issue
Block a user