소스 검색

Adds error handling to rbenv-sh-shell

pull/360/head^2
Timothy King 13 년 전
부모
커밋
39497042bc
1개의 변경된 파일15개의 추가작업 그리고 1개의 파일을 삭제
  1. +15
    -1
      libexec/rbenv-sh-shell

+ 15
- 1
libexec/rbenv-sh-shell 파일 보기

@ -1,2 +1,16 @@
#!/bin/sh
echo "export RBENV_VERSION=$1"
if [ -z "$1" ]; then
echo "Please specify one of the following Ruby versions to use:" >&2
echo "" >&2
echo "$(rbenv-versions)" >&2
exit 1
fi
version=$1
if [ -d "$HOME/.rbenv/versions/$version" ]; then
echo "export RBENV_VERSION=$version"
else
echo "rbenv: version \`$version' is not installed" >&2
fi

불러오는 중...
취소
저장