Exit after printing usage in rbenv-version-file-write

This commit is contained in:
Sam Stephenson 2011-08-18 15:28:35 -05:00
parent 5be66da9f4
commit af36d449bf

View file

@ -5,7 +5,8 @@ RBENV_VERSION_FILE="$1"
RBENV_VERSION="$2"
if [ -z "$RBENV_VERSION" ] || [ -z "$RBENV_VERSION_FILE" ]; then
echo "usage: rbenv write-version-file filename version" >&2
echo "usage: rbenv write-version-file FILENAME VERSION" >&2
exit 1
fi
# Make sure the specified version is installed.