lib/chef/provider/script.rb in chef-0.9.10.rc.3 vs lib/chef/provider/script.rb in chef-0.9.10
- old
+ new
@@ -27,10 +27,10 @@
script_file.puts(@new_resource.code)
script_file.close
set_owner_and_group
- @new_resource.command("\"#{@new_resource.interpreter}\" \"#{script_file.path}\"")
+ @new_resource.command("\"#{@new_resource.interpreter}\" #{@new_resource.flags} \"#{script_file.path}\"")
super
ensure
unlink_script_file
end