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

Update clean-repo.ps1

This commit is contained in:
Markus Fleschutz 2023-07-30 21:31:37 +02:00
parent d59040b128
commit 20d37b8488

View File

@ -40,7 +40,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 repo 📂$RepoDirName in $Elapsed sec" "✔️ Cleaning the 📂$RepoDirName repo took $Elapsed sec"
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"