From 1da746543f3d774c27a7f1f5b2805d07c8626c73 Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Mon, 1 Aug 2011 15:56:52 -0500 Subject: [PATCH] Add missing `set -e` --- bin/rbenv-set-default | 2 ++ bin/rbenv-versions | 2 ++ 2 files changed, 4 insertions(+) diff --git a/bin/rbenv-set-default b/bin/rbenv-set-default index 8567778e..6c0b7298 100755 --- a/bin/rbenv-set-default +++ b/bin/rbenv-set-default @@ -1,5 +1,7 @@ #!/bin/bash +set -e + RBENV_VERSION="$1" if [ -z "$RBENV_VERSION" ]; then echo "usage: rbenv set-default VERSION" >&2 diff --git a/bin/rbenv-versions b/bin/rbenv-versions index 2ae67e78..0a2b5a0b 100755 --- a/bin/rbenv-versions +++ b/bin/rbenv-versions @@ -1,5 +1,7 @@ #!/bin/bash +set -e + RBENV_VERSION="$(rbenv-version)" for path in ~/.rbenv/versions/*; do