Skip to content

Commit

Permalink
Merge pull request #75 from anodelman/fix-win
Browse files Browse the repository at this point in the history
(BKR-474) Missing shellescape in /helpers/serverspec.rb since a6b3e50
  • Loading branch information
kevpl committed Sep 3, 2015
2 parents 49c45f6 + 0229c97 commit 1b3ae6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/beaker-rspec/helpers/serverspec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def run_command(cmd, opt = {})
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
Expand Down

0 comments on commit 1b3ae6f

Please sign in to comment.