Przeglądaj źródła

Merge pull request #9 from sstephenson/cp-shim

Copies bins into shims/ instead of symlinking
pull/360/head^2
Joshua Peek 15 lat temu
rodzic
commit
15356aebc6
2 zmienionych plików z 6 dodań i 4 usunięć
  1. +6
    -1
      bin/rbenv-rehash
  2. +0
    -3
      bin/rbenv-shim

+ 6
- 1
bin/rbenv-rehash Wyświetl plik

@ -5,5 +5,10 @@ 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

+ 0
- 3
bin/rbenv-shim Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz