소스 검색

rbenv --version

pull/360/head^2
Mislav Marohnić 13 년 전
부모
커밋
b5a26936e8
2개의 변경된 파일14개의 추가작업 그리고 1개의 파일을 삭제
  1. +4
    -1
      libexec/rbenv
  2. +10
    -0
      libexec/rbenv---version

+ 4
- 1
libexec/rbenv 파일 보기

@ -60,7 +60,10 @@ shopt -u nullglob
command="$1"
case "$command" in
"" | "-h" | "--help" )
echo -e "rbenv 0.3.0\n$(rbenv-help)" >&2
echo -e "rbenv $(rbenv---version)\n$(rbenv-help)" >&2
;;
"-v" )
exec rbenv---version
;;
* )
command_path="$(command -v "rbenv-$command" || true)"

+ 10
- 0
libexec/rbenv---version 파일 보기

@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x
version=v0.3.0
cd "$RBENV_ROOT"
git_revision="$(git describe --tags HEAD 2>/dev/null || true)"
echo ${git_revision:-$version}

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