Shims include the full path to rbenv

This makes it possible to execute rbenv shims without rbenv's bin
directory in the path.
This commit is contained in:
Sam Stephenson 2013-01-01 13:27:39 -06:00
parent 4b6c91e827
commit 44c2378f2a

View file

@ -57,7 +57,7 @@ if [ "\$program" = "ruby" ]; then
fi
export RBENV_ROOT="$RBENV_ROOT"
exec rbenv exec "\$program" "\$@"
exec "$(command -v rbenv)" exec "\$program" "\$@"
SH
chmod +x "$PROTOTYPE_SHIM_PATH"
}