Improved clone-repos.ps1

This commit is contained in:
Markus Fleschutz 2021-01-21 15:19:24 +01:00
parent b5f18e62b5
commit df5222eb2d
2 changed files with 9 additions and 6 deletions

View File

@ -1,11 +1,11 @@
URL,Directory
"https://github.com/commonmark/cmark", "cmark"
"https://github.com/elastic/elasticsearch", "elasticsearch"
"https://github.com/opencv/opencv", "opencv"
"https://github.com/openzfs/zfs", "zfs"
"https://github.com/synesthesiam/voice2json", "voice2json"
"https://github.com/fleschutz/CWTS", "CWTS"
"https://github.com/fleschutz/PowerShell", "PowerShell"
"https://github.com/fleschutz/LSS", "LSS"
"https://github.com/fleschutz/event-driven", "event-driven"
"https://github.com/fleschutz/base256unicode", "base256unicode"
"https://github.com/synesthesiam/voice2json", "voice2json"
"https://github.com/TinyCC/tinycc", "tinycc"
"https://github.com/opencv/opencv", "opencv"
"https://github.com/openzfs/zfs", "zfs"

1 URL Directory
2 https://github.com/commonmark/cmark cmark
3 https://github.com/elastic/elasticsearch elasticsearch
https://github.com/opencv/opencv opencv
https://github.com/openzfs/zfs zfs
https://github.com/synesthesiam/voice2json voice2json
4 https://github.com/fleschutz/CWTS CWTS
5 https://github.com/fleschutz/PowerShell PowerShell
6 https://github.com/fleschutz/LSS LSS
https://github.com/fleschutz/event-driven event-driven
7 https://github.com/fleschutz/base256unicode base256unicode
8 https://github.com/synesthesiam/voice2json voice2json
9 https://github.com/TinyCC/tinycc tinycc
10 https://github.com/opencv/opencv opencv
11 https://github.com/openzfs/zfs zfs

View File

@ -13,12 +13,15 @@ try {
foreach($Row in $Table) {
$URL = $Row.URL
$Directory = $Row.Directory
write-output ""
if (Test-Path($Directory)) {
write-output "Skipping $Directory (already existent) ..."
continue
}
write-output "Cloning from $URL..."
git clone $URL
}
write-output "Done."
exit 0
} catch {
write-error "ERROR in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"