Improve output of clone-repos.ps1

This commit is contained in:
Markus Fleschutz 2021-05-25 07:30:09 +02:00
parent f6454063e0
commit 9dd3143e60

View File

@ -22,10 +22,10 @@ try {
$URL = $Row.URL $URL = $Row.URL
$DirName = $Row.Directory $DirName = $Row.Directory
if (test-path "$ParentDir/$DirName" -pathType container) { if (test-path "$ParentDir/$DirName" -pathType container) {
"Skipping 📂$DirName - exists already..." "📂$DirName exists already, skipping..."
continue continue
} }
"⏳ Cloning $URL to 📂$($DirName)..." "⏳ Cloning 📂$DirName from $URL..."
& git clone --recurse-submodules "$URL" "$ParentDir/$DirName" & git clone --recurse-submodules "$URL" "$ParentDir/$DirName"
if ($lastExitCode -ne "0") { throw "'git clone $URL' failed" } if ($lastExitCode -ne "0") { throw "'git clone $URL' failed" }
$Count++ $Count++