Skip to content

Commit dc10b06

Browse files
committed
add override_locale false to fix install error
1 parent 18757f2 commit dc10b06

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/puppet/provider/package/powershellcore.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
commands pwsh: 'pwsh'
88

99
def self.invoke_ps_command(command)
10-
result = pwsh(['-NoProfile', '-NonInteractive', '-NoLogo', '-Command', "$ProgressPreference = 'SilentlyContinue'; #{command}"])
11-
Puppet.debug result.exitstatus
12-
Puppet.debug result.lines
10+
result = Puppet::Util::Execution.execute(['pwsh', '-NoProfile', '-NonInteractive', '-NoLogo', '-Command',
11+
"$ProgressPreference = 'SilentlyContinue'; $ErrorActionPreference = 'Stop'; #{command}"],
12+
override_locale: false)
1313
result.lines
1414
end
1515

0 commit comments

Comments
 (0)