mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-14 06:13:53 -05:00
Merge pull request #9 from sstephenson/cp-shim
Copies bins into shims/ instead of symlinking
This commit is contained in:
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##*/}" "$@"
|
|
||||||
Reference in New Issue
Block a user