Shebang -e flag

This commit is contained in:
Joshua Peek 2011-08-02 17:43:43 -05:00
parent 41c5ac5a33
commit c957d83b3a
10 changed files with 10 additions and 30 deletions

View file

@ -1,6 +1,4 @@
#!/bin/bash
set -e
#!/bin/bash -e
command="$1"
if [ -z "$command" ]; then

View file

@ -1,6 +1,4 @@
#!/bin/bash
set -e
#!/bin/bash -e
RBENV_COMMAND="$1"
if [ -z "$RBENV_COMMAND" ]; then

View file

@ -1,6 +1,4 @@
#!/bin/bash
set -e
#!/bin/bash -e
if [ -n "$1" ]; then
RBENV_VERSION="$1"

View file

@ -1,6 +1,4 @@
#!/bin/bash
set -e
#!/bin/bash -e
mkdir -p "${HOME}/.rbenv/shims"
cd "${HOME}/.rbenv/shims"

View file

@ -1,6 +1,4 @@
#!/bin/bash
set -e
#!/bin/bash -e
RBENV_VERSION="$1"
if [ -z "$RBENV_VERSION" ]; then

View file

@ -1,6 +1,4 @@
#!/bin/bash
set -e
#!/bin/bash -e
RBENV_VERSION="$1"
if [ -z "$RBENV_VERSION" ]; then

View file

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

View file

@ -1,6 +1,4 @@
#!/bin/bash
set -e
#!/bin/bash -e
read_version_file() {
egrep -m 1 '[^[:space:]]' "$1"

View file

@ -1,6 +1,4 @@
#!/bin/bash
set -e
#!/bin/bash -e
RBENV_VERSION="$(rbenv-version)"

View file

@ -1,6 +1,4 @@
#!/bin/bash
set -e
#!/bin/bash -e
RBENV_VERSION="$(rbenv-version)"
RBENV_COMMAND="$1"