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,9 +40,9 @@ 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])"
exit 1 exit 1
} }