mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-23 05:01:37 +01:00
Update fetch-repos.ps1 and pull-repos.ps1
This commit is contained in:
parent
098526cb0c
commit
b7e36142bc
@ -24,10 +24,10 @@ try {
|
|||||||
|
|
||||||
Write-Host "⏳ (2) Checking parent folder... " -noNewline
|
Write-Host "⏳ (2) Checking parent folder... " -noNewline
|
||||||
if (-not(Test-Path "$ParentDir" -pathType container)) { throw "Can't access folder: $ParentDir" }
|
if (-not(Test-Path "$ParentDir" -pathType container)) { throw "Can't access folder: $ParentDir" }
|
||||||
$ParentDirName = (Get-Item "$ParentDir").Name
|
|
||||||
$Folders = (Get-ChildItem "$ParentDir" -attributes Directory)
|
$Folders = (Get-ChildItem "$ParentDir" -attributes Directory)
|
||||||
$NumFolders = $Folders.Count
|
$NumFolders = $Folders.Count
|
||||||
Write-Host "$NumFolders subfolders"
|
$ParentDirName = (Get-Item "$ParentDir").Name
|
||||||
|
Write-Host "$NumFolders subfolders in 📂$ParentDirName"
|
||||||
|
|
||||||
[int]$Step = 2
|
[int]$Step = 2
|
||||||
foreach ($Folder in $Folders) {
|
foreach ($Folder in $Folders) {
|
||||||
|
@ -22,12 +22,12 @@ 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" }
|
||||||
|
|
||||||
$ParentDirName = (Get-Item "$ParentDir").Name
|
|
||||||
Write-Host "⏳ (2) Checking parent folder... " -NoNewline
|
Write-Host "⏳ (2) Checking parent folder... " -NoNewline
|
||||||
if (-not(Test-Path "$ParentDir" -pathType container)) { throw "Can't access folder: $ParentDir" }
|
if (-not(Test-Path "$ParentDir" -pathType container)) { throw "Can't access folder: $ParentDir" }
|
||||||
$Folders = (Get-ChildItem "$ParentDir" -attributes Directory)
|
$Folders = (Get-ChildItem "$ParentDir" -attributes Directory)
|
||||||
$NumFolders = $Folders.Count
|
$NumFolders = $Folders.Count
|
||||||
Write-Host "$NumFolders subfolders"
|
$ParentDirName = (Get-Item "$ParentDir").Name
|
||||||
|
Write-Host "$NumFolders subfolders in 📂$ParentDirName"
|
||||||
|
|
||||||
[int]$Step = 3
|
[int]$Step = 3
|
||||||
[int]$Failed = 0
|
[int]$Failed = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user