mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-01-23 06:08:36 +01:00
Improved clone-repos.ps1
This commit is contained in:
parent
b5f18e62b5
commit
df5222eb2d
@ -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"
|
||||
|
|
@ -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])"
|
||||
|
Loading…
Reference in New Issue
Block a user