mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-21 09:28:21 +02:00
Update clone-repos.ps1
This commit is contained in:
parent
4f4638b2fb
commit
49d0a726d3
@ -2,7 +2,7 @@
|
|||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Clones Git repositories
|
Clones Git repositories
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
This PowerShell script clones well-known Git repositories into a target directory.
|
This PowerShell script clones popular Git repositories into a target directory.
|
||||||
.PARAMETER targetDir
|
.PARAMETER targetDir
|
||||||
Specifies the target directory (current working directory by default)
|
Specifies the target directory (current working directory by default)
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
@ -22,8 +22,8 @@ try {
|
|||||||
& git --version
|
& git --version
|
||||||
if ($lastExitCode -ne "0") { throw "Can't execute 'git' - make sure Git is installed and available" }
|
if ($lastExitCode -ne "0") { throw "Can't execute 'git' - make sure Git is installed and available" }
|
||||||
|
|
||||||
Write-Host "⏳ (2) Loading Data/known-git-repos.csv... " -noNewline
|
Write-Host "⏳ (2) Loading Data/popular-git-repos.csv... " -noNewline
|
||||||
$Table = Import-CSV "$PSScriptRoot/../Data/known-git-repos.csv"
|
$Table = Import-CSV "$PSScriptRoot/../Data/popular-git-repos.csv"
|
||||||
$NumEntries = $Table.count
|
$NumEntries = $Table.count
|
||||||
Write-Host "$NumEntries Git repositories"
|
Write-Host "$NumEntries Git repositories"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user