mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-09 01:38:26 +02:00
Improve clone-repos.ps1
This commit is contained in:
parent
6e031bf3ba
commit
fc97a6054b
@ -1,21 +1,21 @@
|
|||||||
Directory,URL
|
Directory,Branch,URL
|
||||||
"base256unicode", "https://github.com/fleschutz/base256unicode"
|
base256unicode, master, "https://github.com/fleschutz/base256unicode"
|
||||||
"bazel", "https://github.com/bazelbuild/bazel"
|
bazel, master, "https://github.com/bazelbuild/bazel"
|
||||||
"cmake", "https://github.com/Kitware/CMake"
|
cmake, master, "https://github.com/Kitware/CMake"
|
||||||
"cmatrix", "https://github.com/abishekvashok/cmatrix"
|
cmatrix, master, "https://github.com/abishekvashok/cmatrix"
|
||||||
"cmark", "https://github.com/commonmark/cmark"
|
cmark, master, "https://github.com/commonmark/cmark"
|
||||||
"CWTS", "https://github.com/fleschutz/CWTS"
|
CWTS, master, "https://github.com/fleschutz/CWTS"
|
||||||
"elasticsearch", "https://github.com/elastic/elasticsearch"
|
elasticsearch, master, "https://github.com/elastic/elasticsearch"
|
||||||
"grafana", "https://github.com/grafana/grafana"
|
grafana, master, "https://github.com/grafana/grafana"
|
||||||
"llvm", "https://github.com/llvm/llvm-project"
|
llvm, master, "https://github.com/llvm/llvm-project"
|
||||||
"ninja", "git://github.com/ninja-build/ninja.git"
|
ninja, master, "git://github.com/ninja-build/ninja.git"
|
||||||
"opencv", "https://github.com/opencv/opencv"
|
opencv, master, "https://github.com/opencv/opencv"
|
||||||
"OSMA", "https://github.com/fleschutz/OSMA"
|
OSMA, master, "https://github.com/fleschutz/OSMA"
|
||||||
"PowerShell", "https://github.com/fleschutz/PowerShell"
|
PowerShell, master, "https://github.com/fleschutz/PowerShell"
|
||||||
"LSS", "https://github.com/fleschutz/LSS"
|
LSS, master, "https://github.com/fleschutz/LSS"
|
||||||
"protobuf", "https://github.com/protocolbuffers/protobuf"
|
protobuf, master, "https://github.com/protocolbuffers/protobuf"
|
||||||
"smartmontools", "https://github.com/smartmontools/smartmontools"
|
smartmontools, master, "https://github.com/smartmontools/smartmontools"
|
||||||
"tensorflow", "https://github.com/tensorflow/tensorflow"
|
tensorflow, master, "https://github.com/tensorflow/tensorflow"
|
||||||
"tinycc", "https://github.com/TinyCC/tinycc"
|
tinycc, master, "https://github.com/TinyCC/tinycc"
|
||||||
"voice2json", "https://github.com/synesthesiam/voice2json"
|
voice2json, master, "https://github.com/synesthesiam/voice2json"
|
||||||
"zfs", "https://github.com/openzfs/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,14 +19,15 @@ try {
|
|||||||
|
|
||||||
[int]$Count = 0
|
[int]$Count = 0
|
||||||
foreach($Row in $Table) {
|
foreach($Row in $Table) {
|
||||||
|
$Directory = $Row.Directory
|
||||||
|
$Branch = $Row.Branch
|
||||||
$URL = $Row.URL
|
$URL = $Row.URL
|
||||||
$DirName = $Row.Directory
|
if (test-path "$ParentDir/$Directory" -pathType container) {
|
||||||
if (test-path "$ParentDir/$DirName" -pathType container) {
|
"📂$Directory exists already, skipping..."
|
||||||
"📂$DirName exists already, skipping..."
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
"⏳ Cloning 📂$DirName from $URL..."
|
"🢃 Cloning 📂$Directory from $URL, $Branch branch..."
|
||||||
& git clone --recurse-submodules "$URL" "$ParentDir/$DirName"
|
& git clone --branch "$Branch" --recurse-submodules "$URL" "$ParentDir/$Directory"
|
||||||
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