ruby-install icon indicating copy to clipboard operation
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)

Open Mizou04 opened this issue 10 months ago • 3 comments

Description

Steps To Reproduce

Steps to reproduce the bug:

  1. $ ruby-install ...
  2. ???

Expected Behavior

Actual Behavior

Environment

$ ruby-install --version
...
$ uname -a
...
$ cc --version
...
$ openssl version
...

Mizou04 avatar Sep 05 '23 16:09 Mizou04

I have a fix for this issue

Mizou04 avatar Sep 05 '23 18:09 Mizou04

@Mizou04 feel free to submit a PR. I'm guessing an extra if [[ ! -w "$install_dir" ]]; then could be added to bin/ruby-install.

postmodern avatar Sep 05 '23 18:09 postmodern

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?

Mizou04 avatar Sep 05 '23 20:09 Mizou04