Add 2 more repos

This commit is contained in:
Markus Fleschutz
2021-07-02 15:48:00 +02:00
parent f012228245
commit 427da3ef60
2 changed files with 26 additions and 25 deletions

View File

@ -19,7 +19,6 @@ try {
[int]$Count = 0
foreach($Row in $Table) {
[string]$AppName = $Row.AppName
[string]$FolderName = $Row.FolderName
[string]$Branch = $Row.Branch
[string]$Shallow = $Row.Shallow
@ -30,10 +29,10 @@ try {
continue
}
if ($Shallow -eq "yes") {
"🢃 Cloning $AppName into 📂$FolderName, $Branch branch, shallow..."
"🢃 Cloning to 📂$FolderName, $Branch branch, shallow..."
& git clone --branch "$Branch" --depth 1 --shallow-submodules --recurse-submodules "$URL" "$ParentDir/$FolderName"
} else {
"🢃 Cloning $AppName into 📂$FolderName, $Branch branch, full history..."
"🢃 Cloning to 📂$FolderName, $Branch branch, full history..."
& git clone --branch "$Branch" --recurse-submodules "$URL" "$ParentDir/$FolderName"
}
if ($lastExitCode -ne "0") { throw "'git clone $URL' failed" }