Copies bins into shims/ instead of symlinking

Fixes #6
This commit is contained in:
Joshua Peek 2011-08-02 18:50:44 -05:00
parent 8f9a34d9b1
commit 06228d3583
2 changed files with 6 additions and 4 deletions

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 ${file##*/} \$@
SH
chmod +x "$shim"
done done

View file

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