ruby-install
ruby-install copied to clipboard
doesn't make some simple yet very important checks before starting the installation process (e.g need permission when using --sytem flag)
Description
Steps To Reproduce
Steps to reproduce the bug:
-
$ ruby-install ...
- ???
Expected Behavior
Actual Behavior
Environment
$ ruby-install --version
...
$ uname -a
...
$ cc --version
...
$ openssl version
...
I have a fix for this issue
@Mizou04 feel free to submit a PR. I'm guessing an extra if [[ ! -w "$install_dir" ]]; then
could be added to bin/ruby-install
.
actually I modified directly the function responsible for parsing the options so it doesn't need to go the whole stack down to bin/ruby-install, is that ok?