mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-24 19:08:27 +02:00
Improve clean-repo.ps1
This commit is contained in:
parent
b078b794e3
commit
6678dea5f7
@ -24,7 +24,7 @@ try {
|
|||||||
& git submodule foreach --recursive git clean -fdx
|
& git submodule foreach --recursive git clean -fdx
|
||||||
if ($lastExitCode -ne "0") { throw "'git clean -fdx' in submodules failed" }
|
if ($lastExitCode -ne "0") { throw "'git clean -fdx' in submodules failed" }
|
||||||
|
|
||||||
"📂 $RepoDir is clean"
|
"✔️ Git repository 📂$RepoDir is clean now"
|
||||||
exit 0
|
exit 0
|
||||||
} catch {
|
} catch {
|
||||||
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
Loading…
Reference in New Issue
Block a user