Improve the output

This commit is contained in:
Markus Fleschutz 2021-04-17 20:05:39 +02:00
parent 6f9eb23523
commit 567a0a4e69

View File

@ -19,14 +19,14 @@ try {
foreach($Row in $Table) {
$URL = $Row.URL
$Directory = $Row.Directory
write-output ""
if (Test-Path $Directory) {
write-output "Skipping existing $Directory ..."
"Skipping existing $Directory..."
continue
}
write-output "⏳ Cloning $URL..."
"⏳ Cloning $URL..."
& git clone --recurse-submodules $URL
if ($lastExitCode -ne "0") { throw "'git clone $URL' failed" }
""
}
exit 0
} catch {