Skip to content

Commit

Permalink
Small conditional tweak in rbenv.sh.erb.
Browse files Browse the repository at this point in the history
References #8
  • Loading branch information
fnichol committed Apr 22, 2012
1 parent 8309f4f commit 3717195
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/default/rbenv.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ elif [[ -s "<%= node['rbenv']['root_path'] %>" ]]; then
export RBENV_ROOT="$rbenv_root"
fi

if [ "$rbenv_root" != "" ]; then
if [[ -n "$rbenv_root" ]]; then
export PATH="${rbenv_root}/bin:$PATH"
eval "$(rbenv init -)"
fi

0 comments on commit 3717195

Please sign in to comment.