mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-13 05:43:53 -05:00
rbenv --version
This commit is contained in:
@@ -60,7 +60,10 @@ shopt -u nullglob
|
|||||||
command="$1"
|
command="$1"
|
||||||
case "$command" in
|
case "$command" in
|
||||||
"" | "-h" | "--help" )
|
"" | "-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)"
|
command_path="$(command -v "rbenv-$command" || true)"
|
||||||
|
|||||||
10
libexec/rbenv---version
Executable file
10
libexec/rbenv---version
Executable 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}
|
||||||
Reference in New Issue
Block a user