File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ process {
124
124
if (-not $foundModuleRequirement ) {
125
125
# If it wasn't,
126
126
$foundModuleRequirement = try { # try loading it
127
- Import-Module - Name $moduleRequirement - PassThru - Global - ErrorAction SilentlyContinue
127
+ Import-Module - Name $moduleRequirement - PassThru - Global - ErrorAction ' Continue '
128
128
} catch {
129
129
$null
130
130
}
@@ -164,7 +164,7 @@ process {
164
164
if ($? ) {
165
165
# Provided the installation worked, try importing it
166
166
$foundModuleRequirement =
167
- Import-Module - Name $moduleRequirement - PassThru - Global - ErrorAction SilentlyContinue
167
+ Import-Module - Name $moduleRequirement - PassThru - Global - ErrorAction ' Continue ' - Force
168
168
}
169
169
}
170
170
} else {
You can’t perform that action at this time.
0 commit comments