Add missing set -e

This commit is contained in:
Sam Stephenson 2011-08-01 15:56:52 -05:00
parent 99035a49a9
commit 1da746543f
2 changed files with 4 additions and 0 deletions

View file

@ -1,5 +1,7 @@
#!/bin/bash
set -e
RBENV_VERSION="$1"
if [ -z "$RBENV_VERSION" ]; then
echo "usage: rbenv set-default VERSION" >&2

View file

@ -1,5 +1,7 @@
#!/bin/bash
set -e
RBENV_VERSION="$(rbenv-version)"
for path in ~/.rbenv/versions/*; do