Skip to content

Commit 5449aa4

Browse files
author
Nuo Yan
committed
Set cwd=>false in sh method in solr-installer
1 parent 6d9eaae commit 5449aa4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎chef-solr/lib/chef/solr/solr_installer.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ def sh(*args)
347347
opts = args[1, args.size - 1]
348348
opts_msg = opts.empty? ? '' : " #{opts.to_s}"
349349
say "#{args.first}#{opts_msg}"
350-
shell_out!(*args) unless config.noop?
350+
shell_out!(*(args << {:cwd => false})) unless config.noop?
351351
end
352352

353353
def chown(file)

0 commit comments

Comments
 (0)