Skip to content

Commit

Permalink
Merge pull request #257 from bugsnag/fix-shell-out-call
Browse files Browse the repository at this point in the history
  • Loading branch information
lamont-granquist authored Mar 31, 2022
2 parents c653f03 + 16f19eb commit fe98b24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def binary_exists?
def safe_sv_shellout(command, options = {})
begin
Chef::Log.debug("Attempting to run runit command: #{new_resource.sv_bin} #{command}")
cmd = shell_out("#{new_resource.sv_bin} #{command}", options)
cmd = shell_out("#{new_resource.sv_bin} #{command}", **options)
rescue Errno::ENOENT
if binary_exists?
raise # Some other cause
Expand Down

0 comments on commit fe98b24

Please sign in to comment.