1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-13 22:03:52 -05:00

Merge pull request #9 from sstephenson/cp-shim

Copies bins into shims/ instead of symlinking
This commit is contained in:
Joshua Peek
2011-08-02 17:39:07 -07:00
2 changed files with 6 additions and 4 deletions

7
bin/rbenv-rehash Executable file → Normal file
View File

@@ -5,5 +5,10 @@ cd "${HOME}/.rbenv/shims"
rm -f *
for file in ../versions/*/bin/*; do
ln -fs ../bin/rbenv-shim "${file##*/}"
shim="${file##*/}"
cat > "$shim" <<SH
#!/bin/sh
exec rbenv exec $shim "\$@"
SH
chmod +x "$shim"
done

View File

@@ -1,3 +0,0 @@
#!/usr/bin/env bash -e
exec rbenv-exec "${0##*/}" "$@"