mirror of
https://github.com/PowerShell/PSDscResources
synced 2026-06-21 13:45:29 +00:00
breaking up path for importing helper
This commit is contained in:
@@ -63,8 +63,11 @@
|
||||
$errorActionPreference = 'Stop'
|
||||
Set-StrictMode -Version 'Latest'
|
||||
|
||||
Import-Module -Name (Join-Path -Path (Split-Path -Path $PSScriptRoot -Parent) `
|
||||
-ChildPath 'CommonResourceHelper.psm1')
|
||||
# Import CommonResourceHelper for Test-IsNanoServer
|
||||
$script:dscResourcesFolderFilePath = Split-Path $PSScriptRoot -Parent
|
||||
$script:commonResourceHelperFilePath = Join-Path -Path $script:dscResourcesFolderFilePath -ChildPath 'CommonResourceHelper.psm1'
|
||||
Import-Module -Name $script:commonResourceHelperFilePath
|
||||
|
||||
$script:localizedData = Get-LocalizedData -ResourceName 'MSFT_GroupResource'
|
||||
|
||||
if (-not (Test-IsNanoServer))
|
||||
|
||||
Reference in New Issue
Block a user