Merge pull request #82 from sstephenson/shims-set-root

Shims set RBENV_ROOT
This commit is contained in:
Sam Stephenson 2011-09-12 18:45:01 -07:00
commit eefd5ea47d

View file

@ -37,6 +37,7 @@ create_prototype_shim() {
cat > "$PROTOTYPE_SHIM_PATH" <<SH cat > "$PROTOTYPE_SHIM_PATH" <<SH
#!/usr/bin/env bash #!/usr/bin/env bash
set -e set -e
export RBENV_ROOT="$RBENV_ROOT"
exec rbenv exec "\${0##*/}" "\$@" exec rbenv exec "\${0##*/}" "\$@"
SH SH
chmod +x "$PROTOTYPE_SHIM_PATH" chmod +x "$PROTOTYPE_SHIM_PATH"