未验证 提交 d636d26a 编写于 作者: T Trevor Brown 提交者: GitHub

Merge pull request #136 from phongnh/master

Fix install / list-all commands always re-download ruby-build
......@@ -17,6 +17,11 @@ ensure_ruby_build_installed() {
download_ruby_build
else
current_ruby_build_version="$("$(ruby_build_path)" --version | cut -d ' ' -f2)"
# If ruby-build version does not start with 'v',
# add 'v' to beginning of version
if [ ${current_ruby_build_version:0:1} != "v" ]; then
current_ruby_build_version="v$current_ruby_build_version"
fi
if [ "$current_ruby_build_version" != "$RUBY_BUILD_VERSION" ]; then
# If the ruby-build directory already exists and the version does not
# match, remove it and download the correct version
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册