Tweak the ruby- prefix warning

This commit is contained in:
Sam Stephenson 2012-12-31 09:58:10 -06:00
parent d4faae187a
commit d2a8ca7d89

View file

@ -21,8 +21,8 @@ version_exists() {
if version_exists "$RBENV_VERSION"; then
echo "$RBENV_VERSION"
elif version_exists "${RBENV_VERSION#ruby-}"; then
{ echo "rbenv: ignoring extraneous \`ruby-' prefix in version \`${RBENV_VERSION}'"
echo "(set by $(rbenv-version-origin))"
{ echo "warning: ignoring extraneous \`ruby-' prefix in version \`${RBENV_VERSION}'"
echo " (set by $(rbenv-version-origin))"
} >&2
echo "${RBENV_VERSION#ruby-}"
else