Skip to content

rbenv directory not found when rbenv_path is not setΒ #12

@ccastillop

Description

@ccastillop

I am not totally sure if this bug is related with this gem, but when rbenv_path is not set, the default is defined here (capistrano rbenv config):

But for some reason $HOME/.rbenv is escaped to \$HOME/.rbenv and therefore bash fails.

Caused by:
SSHKit::Runner::ExecuteError: Exception while executing as ccastillo@xxx: if test ! -d \$HOME/.rbenv/plugins/ruby-build; then echo "Directory does not exist '\$HOME/.rbenv/plugins/ruby-build'" 1>&2; false; fi exit status: 1
if test ! -d \$HOME/.rbenv/plugins/ruby-build; then echo "Directory does not exist '\$HOME/.rbenv/plugins/ruby-build'" 1>&2; false; fi stdout: Nothing written
if test ! -d \$HOME/.rbenv/plugins/ruby-build; then echo "Directory does not exist '\$HOME/.rbenv/plugins/ruby-build'" 1>&2; false; fi stderr: Directory does not exist '$HOME/.rbenv/plugins/ruby-build'

The workarround solutions is don't forget to set :rbenv_path, "~/.rbenv"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions