Skip to content

Commit a40e628

Browse files
committed
test path
1 parent 37beb2c commit a40e628

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tools/AzureRM.Example.psm1

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@ Set-StrictMode -Version Latest
1111

1212
%IMPORTED-DEPENDENCIES%
1313

14-
Get-ChildItem "$PSScriptRoot\StartupScripts" | ForEach-Object {
15-
. $_.FullName
14+
if (Test-Path -Path "$PSScriptRoot\StartupScripts")
15+
{
16+
Get-ChildItem "$PSScriptRoot\StartupScripts" | ForEach-Object {
17+
. $_.FullName
18+
}
1619
}
1720

1821
if ($PSVersionTable.PSVersion.Major -ge 5)

0 commit comments

Comments
 (0)