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:
9
libexec/rbenv-rehash
Executable file → Normal file
9
libexec/rbenv-rehash
Executable file → Normal 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
|
||||
|
||||
Reference in New Issue
Block a user