diff --git a/libexec/rbenv b/libexec/rbenv index 3c241d3e..0a9d0122 100755 --- a/libexec/rbenv +++ b/libexec/rbenv @@ -22,6 +22,8 @@ abs_dirname() { if [ -z "${RBENV_ROOT}" ]; then RBENV_ROOT="${HOME}/.rbenv" +else + RBENV_ROOT="${RBENV_ROOT%/}" fi export RBENV_ROOT