mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-03-26 14:26:10 +01:00
Improve clone-repos.ps1
This commit is contained in:
parent
8cd8bfc1cd
commit
0cfa90aabc
@ -16,7 +16,7 @@ LSS, LSS, master, "https://github.com/fleschutz/LSS"
|
||||
ProtoBuf, protobuf, master, "https://github.com/protocolbuffers/protobuf"
|
||||
SmartMonTools, smartmontools, master, "https://github.com/smartmontools/smartmontools"
|
||||
Tensorflow, tensorflow, master, "https://github.com/tensorflow/tensorflow"
|
||||
Terminal, terminal, master, "https://github.com/microsoft/terminal"
|
||||
Windows Terminal,terminal, main, "https://github.com/microsoft/terminal"
|
||||
TinyCC, tinycc, master, "https://github.com/TinyCC/tinycc"
|
||||
Voice2Json, voice2json, master, "https://github.com/synesthesiam/voice2json"
|
||||
ZFS, zfs, master, "https://github.com/openzfs/zfs"
|
||||
|
Can't render this file because it has a wrong number of fields in line 2.
|
@ -19,15 +19,16 @@ try {
|
||||
|
||||
[int]$Count = 0
|
||||
foreach($Row in $Table) {
|
||||
$AppName = $Row.AppName
|
||||
$FolderName = $Row.FolderName
|
||||
$BranchName = $Row.BranchName
|
||||
$URL = $Row.URL
|
||||
|
||||
if (test-path "$ParentDir/$FolderName" -pathType container) {
|
||||
"📂$FolderName exists already, skipping..."
|
||||
"📂$FolderName for $AppName exists already, skipping..."
|
||||
continue
|
||||
}
|
||||
"🢃 Cloning 📂$FolderName from $URL, $BranchName branch..."
|
||||
"🢃 Cloning $AppName into 📂$FolderName, $BranchName branch..."
|
||||
& git clone --branch "$BranchName" --recurse-submodules "$URL" "$ParentDir/$FolderName"
|
||||
if ($lastExitCode -ne "0") { throw "'git clone $URL' failed" }
|
||||
$Count++
|
||||
|
Loading…
Reference in New Issue
Block a user