mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-17 10:11:27 +01: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
|
||||
if ($lastExitCode -ne "0") { throw "'git clean -fdx' in submodules failed" }
|
||||
|
||||
"📂 $RepoDir is clean"
|
||||
"✔️ Git repository 📂$RepoDir is clean now"
|
||||
exit 0
|
||||
} catch {
|
||||
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
Loading…
Reference in New Issue
Block a user