Skip to content

Commit 24156be

Browse files
authored
Use :cmd backend for Windows platform (#4)
Seems `:exec` assumes Linux environment. So, this patch uses `:cmd` as backend on Windows.
1 parent 180dcaa commit 24156be

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)