-
-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fix rvm install #84
Fix rvm install #84
Conversation
user opts[:user] || "root" | ||
command <<-CODE | ||
bash -c "bash \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can just specify bash here and not have to include line 71, interpreter 'bash'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, bash instead of script and interpreter. You're totally right. I'll update it, thanks.
Tried out your branch and it works :) Thanks for sorting this out. |
Just tested xdissent's branch and it works - please pull it in! |
It looks like RVM is moving to https://rvm.io/ and the official install command has now lost the process substitution that was breaking the chef recipe: |
This fix doesn't actually fix the problem it only ignores it. Bash defaults to ignoring the exit code of any programs it runs so when the script is run and it exits with status 1 the changeset in this pull request simply ignores that value. This is problematic because when the install actually fails it is not reported as such. If you enable the option for bash to quit when any program returns an error: The actual problem with the install script is caused by rvm trying to use colors for its terminal output which fails because it hasn't got a real terminal. To fix it you can set the TERM env var to dumb |
@griff got it. Fixed, plus changed to new official installer command and URL. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
A better solution to PR 82: #82