Open esotericpig opened 2 years ago
This is because bin/ruby-install
cd
s into $src_dir/$ruby_dir_name
. So if the src_dir
is relative, it won't be able to find the $src_dir/$ruby_dir_name
while within $src_dir/$ruby_dir_name
. We could change the copy_into
call to copy the current directory, or replace install_ruby
of jruby
with better logic that is specifically for installing binary or pre-compiled rubies.
(Sorry on mobile, so accidentally sent original bug without description.)
Description
On macOS if install JRuby like this:
Fails on
copy_into
function:I added a
pwd
to copy_into in util.sh, and I see that it actually CDed into that directory:So workaround is to use full, absolute path (instead of relative). Interestingly though, just using
temp
works for installingruby
.Don't know if this is by design or not.
Environment