This website works better with JavaScript.
Home
Explore
Help
Sign In
isprogram
/
pyenv
mirror of
https://github.com/pyenv/pyenv.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
241
Wiki
Activity
Browse Source
Tweak `rbenv --version` output
pull/360/head^2
Sam Stephenson
13 years ago
parent
3060578e3b
commit
1ebcbd92e2
2 changed files
with
4 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
libexec/rbenv
+3
-2
libexec/rbenv---version
+ 1
- 1
libexec/rbenv
View File
@ -60,7 +60,7 @@ shopt -u nullglob
command="$1"
case "$command" in
"" | "-h" | "--help" )
echo -e "
rbenv
$(rbenv---version)\n$(rbenv-help)" >&2
echo -e "$(rbenv---version)\n$(rbenv-help)" >&2
;;
"-v" )
exec rbenv---version
+ 3
- 2
libexec/rbenv---version
View File
@ -2,9 +2,10 @@
set -e
[ -n "$RBENV_DEBUG" ] && set -x
version=
v
0.3.0
version=0.3.0
cd "$RBENV_ROOT"
git_revision="$(git describe --tags HEAD 2>/dev/null || true)"
git_revision="${git_revision#v}"
echo ${git_revision:-$version}
echo
"rbenv
${git_revision:-$version}
"
Write
Preview
Loading…
Cancel
Save