wayneeseguin/rvm — pull request #2503 by mpapis (2014-01-03 00:38:36+00:00)
Title: RVM mount does not work on local files

When trying to mount a locally stored binary using `rvm mount -r FILE` (in this case Rbx) I am presented with the following error:

```
[yorick@ip-10-37-184-253 rubinius-2.2.3]$ rvm mount -r ./rubinius-2.2.3.tar.bz2
./rubinius-2.2.3.tar.bz2 - #configure
rubinius-2.2.3 - #download
rubinius-2.2.3 - #validate archive
rubinius-2.2.3 - #extract
rubinius-2.2.3 - #validate binary
rubinius-2.2.3 - #setup
find: `/usr/local/rvm/rubies/rbx-2.2.3/bin/': No such file or directory
find: `/usr/local/rvm/rubies/rbx-2.2.3': No such file or directory
find: `/usr/local/rvm/rubies/rbx-2.2.3': No such file or directory
rbx-2.2.3 - #making binaries executable.
Error running '__rvm_set_executable /usr/local/rvm/rubies/rbx-2.2.3/bin/*',
showing last 15 lines of /usr/local/rvm/log/1388680741_rbx-2.2.3/chmod.bin.log
[2014-01-02 16:39:01] __rvm_set_executable
__rvm_set_executable ()
{
for __file in "$@";
do
[[ -x "${__file}" ]] || chmod +x "${__file}";
done
}
current path: /home/yorick/rubinius-2.2.3
GEM_HOME=/usr/local/rvm/gems/ruby-1.9.3-p448
PATH=/usr/local/rvm/gems/ruby-1.9.3-p448/bin:/usr/local/rvm/gems/ruby-1.9.3-p448@global/bin:/usr/local/rvm/rubies/ruby-1.9.3-p448/bin:/usr/local/rvm/bin:/usr/local/bin:/bin:/usr/bi
n:/usr/local/sbin:/usr/sbin:/sbin:/opt/aws/bin:/home/yorick/bin
GEM_PATH=/usr/local/rvm/gems/ruby-1.9.3-p448:/usr/local/rvm/gems/ruby-1.9.3-p448@global
command(2): __rvm_set_executable /usr/local/rvm/rubies/rbx-2.2.3/bin/*
chmod: cannot access `/usr/local/rvm/rubies/rbx-2.2.3/bin/*': No such file or directory

[yorick@ip-10-37-184-253 rubinius-2.2.3]$ ls -l /usr/local/rvm/rubies/rbx-2.2.3
ls: cannot access /usr/local/rvm/rubies/rbx-2.2.3: No such file or directory
```

This issue occurs on Amazon Linux (some flavour of CentOS 6.4), 64 bit. The binary was built manually & locally.