diff --git a/bin/rbenv b/bin/rbenv index 30f1a189..11e9bdc3 100755 --- a/bin/rbenv +++ b/bin/rbenv @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/usr/bin/env bash -e command="$1" if [ -z "$command" ]; then diff --git a/bin/rbenv-exec b/bin/rbenv-exec index 16039d85..ffd911b9 100755 --- a/bin/rbenv-exec +++ b/bin/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/bin/rbenv-path b/bin/rbenv-path index a37c9edc..a60c806b 100755 --- a/bin/rbenv-path +++ b/bin/rbenv-path @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/usr/bin/env bash -e if [ -n "$1" ]; then RBENV_VERSION="$1" diff --git a/bin/rbenv-rehash b/bin/rbenv-rehash index 1d42bce9..c0096616 100644 --- a/bin/rbenv-rehash +++ b/bin/rbenv-rehash @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/usr/bin/env bash -e mkdir -p "${HOME}/.rbenv/shims" cd "${HOME}/.rbenv/shims" diff --git a/bin/rbenv-set-default b/bin/rbenv-set-default index a36f2319..a1922a76 100755 --- a/bin/rbenv-set-default +++ b/bin/rbenv-set-default @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/usr/bin/env bash -e RBENV_VERSION="$1" if [ -z "$RBENV_VERSION" ]; then diff --git a/bin/rbenv-set-local b/bin/rbenv-set-local index 59512db1..38406232 100755 --- a/bin/rbenv-set-local +++ b/bin/rbenv-set-local @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/usr/bin/env bash -e RBENV_VERSION="$1" if [ -z "$RBENV_VERSION" ]; then diff --git a/bin/rbenv-version b/bin/rbenv-version index 1337e367..01c1afdf 100755 --- a/bin/rbenv-version +++ b/bin/rbenv-version @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/usr/bin/env bash -e read_version_file() { egrep -m 1 '[^[:space:]]' "$1" diff --git a/bin/rbenv-versions b/bin/rbenv-versions index b3faad6f..6b848c07 100755 --- a/bin/rbenv-versions +++ b/bin/rbenv-versions @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/usr/bin/env bash -e RBENV_VERSION="$(rbenv-version)" diff --git a/bin/rbenv-which b/bin/rbenv-which index cb63d8d5..0e05c81b 100755 --- a/bin/rbenv-which +++ b/bin/rbenv-which @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/usr/bin/env bash -e RBENV_VERSION="$(rbenv-version)" RBENV_COMMAND="$1"