Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

which -s doesn't work on Debain #44

Closed
Arcath opened this issue Aug 10, 2012 · 2 comments
Closed

which -s doesn't work on Debain #44

Arcath opened this issue Aug 10, 2012 · 2 comments

Comments

@Arcath
Copy link
Contributor

Arcath commented Aug 10, 2012

I've found that Debain (and Ubuntu) dont support -s on which so the new rbenv code doesn't work so I get:

-----> Loading rbenv
       Illegal option -s
 !     rbenv not found
 !     If rbenv is installed, check your :rbenv_path setting.
 !     Command failed.
       Failed with status 1

If you remove -s on line 19 of mina/lib/rbenv.rb everything seems to work fine. I did a quick test on MacOS and Debian to make sure everything will work as expected:

MacOS:

$ if ! which rbenv >/dev/null; then; echo "not pathed right"; fi
$ if ! which rvm >/dev/null; then; echo "not pathed right"; fi
not pathed right

Debian:

$ if ! which rbenv >/dev/null; then echo "not pathed right"; fi
$ if ! which rvm >/dev/null; then echo "not pathed right"; fi
not pathed right

So it works as expected on both without the -s

Should be a nice quick fix, didn't really feel it was worth opening a pull request to remove 3 characters.

@Arcath
Copy link
Contributor Author

Arcath commented Aug 14, 2012

Done a bit more testing and this fix is also needed for Fedora/Redhat and Arch

@rstacruz
Copy link
Member

rstacruz commented Sep 8, 2012

Seems I overlooked this, sorry--scheduled for v0.2.1.

@rstacruz rstacruz closed this as completed Sep 8, 2012
rstacruz added a commit that referenced this issue Sep 8, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants