Added some functionality for PS5.1 and below, as it doesn't seem to properly import the other functions

This commit is contained in:
Nathan Windisch 2024-07-26 13:57:04 +01:00
parent 252125184e
commit 3511d98e62

View File

@ -1,2 +1,6 @@
Import-Module "$PSScriptRoot/Functions/Public/Initialize-GraylogServiceVault.ps1"
$null = Initialize-GraylogServiceVault
$null = Initialize-GraylogServiceVault
if ($PSVersionTable.PSVersion.Major -lt 7) {
Get-ChildItem "$PSScriptRoot/Functions" -Filter "*.ps1" -Recurse | ForEach-Object { Import-Module $_.FullName }
}