From 568cd4b23e5c0a8dc24e8a1fa591760d4a5790ed Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Wed, 14 Sep 2011 12:45:44 -0500 Subject: [PATCH] Strip trailing slashes from RBENV_ROOT (#83) --- libexec/rbenv | 2 ++ 1 file changed, 2 insertions(+) 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