mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-22 20:51:17 +01:00
Improve output of clone-repos.ps1
This commit is contained in:
parent
f6454063e0
commit
9dd3143e60
@ -22,10 +22,10 @@ try {
|
||||
$URL = $Row.URL
|
||||
$DirName = $Row.Directory
|
||||
if (test-path "$ParentDir/$DirName" -pathType container) {
|
||||
"Skipping 📂$DirName - exists already..."
|
||||
"📂$DirName exists already, skipping..."
|
||||
continue
|
||||
}
|
||||
"⏳ Cloning $URL to 📂$($DirName)..."
|
||||
"⏳ Cloning 📂$DirName from $URL..."
|
||||
& git clone --recurse-submodules "$URL" "$ParentDir/$DirName"
|
||||
if ($lastExitCode -ne "0") { throw "'git clone $URL' failed" }
|
||||
$Count++
|
||||
|
Loading…
Reference in New Issue
Block a user