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
commit 15356aebc6
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 * rm -f *
for file in ../versions/*/bin/*; do 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 done

View file

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