diff --git a/libexec/rbenv b/libexec/rbenv index 253d08bc..16e57108 100755 --- a/libexec/rbenv +++ b/libexec/rbenv @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/usr/bin/env bash -e abs_dirname() { orig_dir=`pwd` diff --git a/libexec/rbenv-exec b/libexec/rbenv-exec index 16039d85..ffd911b9 100755 --- a/libexec/rbenv-exec +++ b/libexec/rbenv-exec @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/usr/bin/env bash -e RBENV_COMMAND="$1" if [ -z "$RBENV_COMMAND" ]; then diff --git a/libexec/rbenv-path b/libexec/rbenv-path index a37c9edc..a60c806b 100755 --- a/libexec/rbenv-path +++ b/libexec/rbenv-path @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/usr/bin/env bash -e if [ -n "$1" ]; then RBENV_VERSION="$1" diff --git a/libexec/rbenv-rehash b/libexec/rbenv-rehash old mode 100755 new mode 100644 index 8bbd53b6..c0096616 --- a/libexec/rbenv-rehash +++ b/libexec/rbenv-rehash @@ -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" <