mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Merge pull request #9 from sstephenson/cp-shim
Copies bins into shims/ instead of symlinking
This commit is contained in:
commit
15356aebc6
2 changed files with 6 additions and 4 deletions
7
bin/rbenv-rehash
Executable file → Normal file
7
bin/rbenv-rehash
Executable file → Normal 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
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
#!/usr/bin/env bash -e
|
|
||||||
|
|
||||||
exec rbenv-exec "${0##*/}" "$@"
|
|
Loading…
Reference in a new issue