Procházet zdrojové kódy

Copies bins into shims/ instead of symlinking

Fixes #6
pull/360/head^2
Joshua Peek před 15 roky
rodič
revize
06228d3583
2 změnil soubory, kde provedl 6 přidání a 4 odebrání
  1. +6
    -1
      bin/rbenv-rehash
  2. +0
    -3
      bin/rbenv-shim

+ 6
- 1
bin/rbenv-rehash Zobrazit soubor

@ -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 ${file##*/} \$@
SH
chmod +x "$shim"
done

+ 0
- 3
bin/rbenv-shim Zobrazit soubor

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

Načítá se…
Zrušit
Uložit