diff --git a/bin/rbenv-rehash b/bin/rbenv-rehash index f0435238..692cfacc 100755 --- a/bin/rbenv-rehash +++ b/bin/rbenv-rehash @@ -4,7 +4,7 @@ set -e mkdir -p "${HOME}/.rbenv/shims" cd "${HOME}/.rbenv/shims" -rm * +rm -f * for file in ../versions/*/bin/*; do ln -fs ../bin/rbenv-shim "${file##*/}"