We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37beb2c commit a40e628Copy full SHA for a40e628
tools/AzureRM.Example.psm1
@@ -11,8 +11,11 @@ Set-StrictMode -Version Latest
11
12
%IMPORTED-DEPENDENCIES%
13
14
-Get-ChildItem "$PSScriptRoot\StartupScripts" | ForEach-Object {
15
- . $_.FullName
+if (Test-Path -Path "$PSScriptRoot\StartupScripts")
+{
16
+ Get-ChildItem "$PSScriptRoot\StartupScripts" | ForEach-Object {
17
+ . $_.FullName
18
+ }
19
}
20
21
if ($PSVersionTable.PSVersion.Major -ge 5)
0 commit comments