1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
This commit is contained in:
Benoit Daloze 2020-05-03 12:28:27 +02:00
parent 4aca078bda
commit f646d20aae
2 changed files with 9 additions and 2 deletions

View file

@ -4,7 +4,14 @@
# directory is empty when the process exits.
SPEC_TEMP_DIR_PID = Process.pid
SPEC_TEMP_DIR = File.expand_path(ENV["SPEC_TEMP_DIR"] || "rubyspec_temp/#{SPEC_TEMP_DIR_PID}")
if spec_temp_dir = ENV["SPEC_TEMP_DIR"]
spec_temp_dir = File.realdirpath(spec_temp_dir)
else
spec_temp_dir = "#{File.realpath(Dir.pwd)}/rubyspec_temp/#{SPEC_TEMP_DIR_PID}"
end
SPEC_TEMP_DIR = spec_temp_dir
SPEC_TEMP_UNIQUIFIER = "0"
at_exit do

View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash
echo $RUBY_EXE
ruby "$@"
exec ruby "$@"