mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-23 03:21:35 +00:00
Additionally fall back to "sh" in the unlikely event $SHELL is unset
This commit is contained in:
parent
0435528b36
commit
09944359a3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user