From c957d83b3a7b0f07afc64f9c8157e159883ae06f Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Tue, 2 Aug 2011 17:43:43 -0500 Subject: [PATCH] Shebang -e flag --- bin/rbenv | 4 +--- bin/rbenv-exec | 4 +--- bin/rbenv-path | 4 +--- bin/rbenv-rehash | 4 +--- bin/rbenv-set-default | 4 +--- bin/rbenv-set-local | 4 +--- bin/rbenv-shim | 4 +--- bin/rbenv-version | 4 +--- bin/rbenv-versions | 4 +--- bin/rbenv-which | 4 +--- 10 files changed, 10 insertions(+), 30 deletions(-) diff --git a/bin/rbenv b/bin/rbenv index c9519604..30f1a189 100755 --- a/bin/rbenv +++ b/bin/rbenv @@ -1,6 +1,4 @@ -#!/bin/bash - -set -e +#!/bin/bash -e command="$1" if [ -z "$command" ]; then diff --git a/bin/rbenv-exec b/bin/rbenv-exec index 59a122b8..16039d85 100755 --- a/bin/rbenv-exec +++ b/bin/rbenv-exec @@ -1,6 +1,4 @@ -#!/bin/bash - -set -e +#!/bin/bash -e RBENV_COMMAND="$1" if [ -z "$RBENV_COMMAND" ]; then diff --git a/bin/rbenv-path b/bin/rbenv-path index ba77369b..a37c9edc 100755 --- a/bin/rbenv-path +++ b/bin/rbenv-path @@ -1,6 +1,4 @@ -#!/bin/bash - -set -e +#!/bin/bash -e if [ -n "$1" ]; then RBENV_VERSION="$1" diff --git a/bin/rbenv-rehash b/bin/rbenv-rehash index 692cfacc..8bbd53b6 100755 --- a/bin/rbenv-rehash +++ b/bin/rbenv-rehash @@ -1,6 +1,4 @@ -#!/bin/bash - -set -e +#!/bin/bash -e mkdir -p "${HOME}/.rbenv/shims" cd "${HOME}/.rbenv/shims" diff --git a/bin/rbenv-set-default b/bin/rbenv-set-default index 0632747a..a36f2319 100755 --- a/bin/rbenv-set-default +++ b/bin/rbenv-set-default @@ -1,6 +1,4 @@ -#!/bin/bash - -set -e +#!/bin/bash -e RBENV_VERSION="$1" if [ -z "$RBENV_VERSION" ]; then diff --git a/bin/rbenv-set-local b/bin/rbenv-set-local index 0f2a1bf5..59512db1 100755 --- a/bin/rbenv-set-local +++ b/bin/rbenv-set-local @@ -1,6 +1,4 @@ -#!/bin/bash - -set -e +#!/bin/bash -e RBENV_VERSION="$1" if [ -z "$RBENV_VERSION" ]; then diff --git a/bin/rbenv-shim b/bin/rbenv-shim index b2341800..0acca18f 100755 --- a/bin/rbenv-shim +++ b/bin/rbenv-shim @@ -1,5 +1,3 @@ -#!/bin/bash - -set -e +#!/bin/bash -e exec rbenv-exec "${0##*/}" "$@" diff --git a/bin/rbenv-version b/bin/rbenv-version index 605c7552..1337e367 100755 --- a/bin/rbenv-version +++ b/bin/rbenv-version @@ -1,6 +1,4 @@ -#!/bin/bash - -set -e +#!/bin/bash -e read_version_file() { egrep -m 1 '[^[:space:]]' "$1" diff --git a/bin/rbenv-versions b/bin/rbenv-versions index 97f217c2..b3faad6f 100755 --- a/bin/rbenv-versions +++ b/bin/rbenv-versions @@ -1,6 +1,4 @@ -#!/bin/bash - -set -e +#!/bin/bash -e RBENV_VERSION="$(rbenv-version)" diff --git a/bin/rbenv-which b/bin/rbenv-which index c14134e2..cb63d8d5 100755 --- a/bin/rbenv-which +++ b/bin/rbenv-which @@ -1,6 +1,4 @@ -#!/bin/bash - -set -e +#!/bin/bash -e RBENV_VERSION="$(rbenv-version)" RBENV_COMMAND="$1"