Update fetch-repos.ps1 and pull-repos.ps1

This commit is contained in:
Markus Fleschutz 2023-01-05 09:49:14 +01:00
parent 098526cb0c
commit b7e36142bc
2 changed files with 4 additions and 4 deletions

View File

@ -24,10 +24,10 @@ try {
Write-Host "⏳ (2) Checking parent folder... " -noNewline
if (-not(Test-Path "$ParentDir" -pathType container)) { throw "Can't access folder: $ParentDir" }
$ParentDirName = (Get-Item "$ParentDir").Name
$Folders = (Get-ChildItem "$ParentDir" -attributes Directory)
$NumFolders = $Folders.Count
Write-Host "$NumFolders subfolders"
$ParentDirName = (Get-Item "$ParentDir").Name
Write-Host "$NumFolders subfolders in 📂$ParentDirName"
[int]$Step = 2
foreach ($Folder in $Folders) {

View File

@ -22,12 +22,12 @@ try {
& git --version
if ($lastExitCode -ne "0") { throw "Can't execute 'git' - make sure Git is installed and available" }
$ParentDirName = (Get-Item "$ParentDir").Name
Write-Host "⏳ (2) Checking parent folder... " -NoNewline
if (-not(Test-Path "$ParentDir" -pathType container)) { throw "Can't access folder: $ParentDir" }
$Folders = (Get-ChildItem "$ParentDir" -attributes Directory)
$NumFolders = $Folders.Count
Write-Host "$NumFolders subfolders"
$ParentDirName = (Get-Item "$ParentDir").Name
Write-Host "$NumFolders subfolders in 📂$ParentDirName"
[int]$Step = 3
[int]$Failed = 0