1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-15 06:43:53 -05:00

Ensure shims set RBENV_ROOT

This commit is contained in:
Joshua Peek
2011-09-12 11:05:45 -05:00
parent 0632325a43
commit 964c12fe27

View File

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