breaking up path for importing helper

This commit is contained in:
Mariah Breakey
2016-12-15 16:22:36 -08:00
parent 9b335c1e75
commit 2d3d4595bb
@@ -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))