mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-02 12:24:11 +02:00
Update clean-repo.ps1
This commit is contained in:
parent
cb9df2ccf2
commit
5f573540a5
@ -12,7 +12,7 @@
|
|||||||
⏳ (2/4) Checking local repository... 📂C:\rust
|
⏳ (2/4) Checking local repository... 📂C:\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 📂rust repository in 1 sec.
|
✔️ Repo 📂rust is clean now (took 1s).
|
||||||
.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 📂$repoName repository in $elapsed sec."
|
"✔️ Repo 📂$repoName is clean now (took $($elapsed)s)."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
Loading…
Reference in New Issue
Block a user