1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-16 23:33:45 -05:00

Accept "ruby-" version prefix but print a warning to stderr

This commit is contained in:
Sam Stephenson
2012-12-30 19:01:30 -06:00
parent b974bf54dc
commit 5e52fae7c1
2 changed files with 11 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ fi
print_version() {
if [ "$1" == "$current_version" ]; then
echo "${hit_prefix}$(rbenv-version)"
echo "${hit_prefix}$(rbenv-version 2>/dev/null)"
else
echo "${miss_prefix}$1"
fi