mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-21 01:18:18 +02:00
Improve output of clone-repos.ps1
This commit is contained in:
parent
f6454063e0
commit
9dd3143e60
@ -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++
|
||||||
|
Loading…
Reference in New Issue
Block a user