1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-12 21:33:54 -05:00

rbenv --version

This commit is contained in:
Mislav Marohnić
2012-12-13 00:40:29 +01:00
parent cf28136003
commit b5a26936e8
2 changed files with 14 additions and 1 deletions

10
libexec/rbenv---version Executable file
View File

@@ -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}