lib/beaker-rspec/helpers/serverspec.rb in beaker-rspec-5.2.1 vs lib/beaker-rspec/helpers/serverspec.rb in beaker-rspec-5.2.2

- old
+ new

@@ -274,10 +274,10 @@ end def build_command(cmd) useshell = '/bin/sh' cmd = cmd.shelljoin if cmd.is_a?(Array) - cmd = "#{String(useshell).shellescape} -c \"#{String(cmd)}\"" + cmd = "#{String(useshell).shellescape} -c #{String(cmd).shellescape}" path = Specinfra.configuration.path if path cmd = %Q{env PATH="#{path}" #{cmd}} end