diff --git a/rake.d/helpers.rb b/rake.d/helpers.rb index de596a17b..299e097c7 100644 --- a/rake.d/helpers.rb +++ b/rake.d/helpers.rb @@ -56,7 +56,7 @@ def run_wrapper cmdline, opts = {} end if $use_tempfile_for_run - shell = ENV["RUBYSHELL"].blank? ? ENV["SHELL"] : ENV["RUBYSHELL"] + shell = ENV["RUBYSHELL"].blank? ? (ENV["SHELL"].blank? ? "sh" : ENV["SHELL"]) : ENV["RUBYSHELL"] Tempfile.open("mkvtoolnix-rake-run") do |t| t.puts cmdline