mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-01-14 09:58:59 +01:00
Merge branch 'master' of github.com:fleschutz/PowerShell
This commit is contained in:
commit
139ceab42f
@ -19,14 +19,14 @@ try {
|
|||||||
foreach($Row in $Table) {
|
foreach($Row in $Table) {
|
||||||
$URL = $Row.URL
|
$URL = $Row.URL
|
||||||
$Directory = $Row.Directory
|
$Directory = $Row.Directory
|
||||||
write-output ""
|
|
||||||
if (Test-Path $Directory) {
|
if (Test-Path $Directory) {
|
||||||
write-output "Skipping existing $Directory ..."
|
"Skipping existing $Directory..."
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
write-output "⏳ Cloning from $URL..."
|
"⏳ Cloning $URL..."
|
||||||
& git clone --recurse-submodules $URL
|
& git clone --recurse-submodules $URL
|
||||||
if ($lastExitCode -ne "0") { throw "'git clone $URL' failed" }
|
if ($lastExitCode -ne "0") { throw "'git clone $URL' failed" }
|
||||||
|
""
|
||||||
}
|
}
|
||||||
exit 0
|
exit 0
|
||||||
} catch {
|
} catch {
|
||||||
|
Loading…
Reference in New Issue
Block a user