1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-14 14:23:53 -05:00

Merge branch 'master' into libexec

Conflicts:
	bin/rbenv
	libexec/rbenv-shim
This commit is contained in:
Joshua Peek
2011-08-02 19:41:03 -05:00
10 changed files with 15 additions and 13 deletions

9
libexec/rbenv-rehash Executable file → Normal file
View File

@@ -1,9 +1,14 @@
#!/bin/bash -e
#!/usr/bin/env bash -e
mkdir -p "${HOME}/.rbenv/shims"
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