mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-22 20:51:17 +01:00
Fix typo in pull-repos.ps1
This commit is contained in:
parent
d229091281
commit
3ccce3044a
@ -23,7 +23,7 @@ try {
|
|||||||
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
|
$ParentDirName = (Get-Item "$ParentDir").Name
|
||||||
Write-Host "⏳ (29 Checking folder 📂$ParentDirName... " -NoNewline
|
Write-Host "⏳ (2) Checking folder 📂$ParentDirName... " -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
|
||||||
@ -50,4 +50,4 @@ try {
|
|||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user