Additionally fall back to "sh" in the unlikely event $SHELL is unset

This commit is contained in:
fauxpark 2022-07-20 17:48:24 +10:00
parent 0435528b36
commit 09944359a3

View File

@ -56,7 +56,7 @@ def run_wrapper cmdline, opts = {}
end end
if $use_tempfile_for_run 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| Tempfile.open("mkvtoolnix-rake-run") do |t|
t.puts cmdline t.puts cmdline