Skip to content

Commit 61a770b

Browse files
committed
Use :cmd backend for Windows platform
1 parent 180dcaa commit 61a770b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/fluent/plugin/fluent_package_update_checker.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def initialize(options={})
2424
@logger.error "Failed to load #{ENV["FLUENT_PACKAGE_CONFIG"] || DEFAULT_PACKAGE_CONFIG_PATH}"
2525
end
2626
@host_os = RbConfig::CONFIG['host_os']
27-
Specinfra.configuration.backend = :exec
27+
Specinfra.configuration.backend = windows? ? :cmd : :exec
2828
@os_info = Specinfra.backend.os_info
2929
end
3030

0 commit comments

Comments
 (0)