Update clone-repos.ps1 and pull-repos.ps1

This commit is contained in:
Markus Fleschutz
2022-08-06 14:25:55 +02:00
parent 23fb20eb1a
commit 6fa8cbbeff
2 changed files with 14 additions and 12 deletions

View File

@ -1,6 +1,6 @@
<#
.SYNOPSIS
Clones Repositories
Clones Git repositories
.DESCRIPTION
This PowerShell script clones well-known Git repositories into a folder.
.PARAMETER folder
@ -23,7 +23,7 @@ try {
if ($lastExitCode -ne "0") { throw "Can't execute 'git' - make sure Git is installed and available" }
"⏳ Step 2 - Checking folder..."
if (-not(test-path "$FolderPath" -pathType container)) { throw "Can't access directory: $FolderPath" }
if (-not(Test-Path "$FolderPath" -pathType container)) { throw "Can't access directory: $FolderPath" }
$ParentFolderName = (Get-Item "$FolderPath").Name
$Table = Import-CSV "$PSScriptRoot/../Data/git-repos.csv"