This website works better with JavaScript.
首頁
探索
說明
登入
isprogram
/
pyenv
镜像来自
https://github.com/pyenv/pyenv.git
關註
1
收藏
0
複製
0
程式碼
問題管理
0
Projects
0
版本發佈
241
Wiki
Activity
瀏覽代碼
rbenv --version
pull/360/head^2
Mislav Marohnić
13 年之前
父節點
cf28136003
當前提交
b5a26936e8
共有
2 個文件被更改
,包括
14 次插入
和
1 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-1
libexec/rbenv
+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}
Write
Preview
Loading…
取消
儲存