mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-14 20:39:55 -05:00
Merge pull request #687 from sstephenson/remove-prefix-warning
Remove warning about extraneous "ruby-" prefix in `.ruby-version`
This commit is contained in:
commit
52bb0dcfcf
2 changed files with 1 additions and 8 deletions
|
@ -21,9 +21,6 @@ version_exists() {
|
|||
if version_exists "$RBENV_VERSION"; then
|
||||
echo "$RBENV_VERSION"
|
||||
elif version_exists "${RBENV_VERSION#ruby-}"; then
|
||||
{ echo "warning: ignoring extraneous \`ruby-' prefix in version \`${RBENV_VERSION}'"
|
||||
echo " (set by $(rbenv-version-origin))"
|
||||
} >&2
|
||||
echo "${RBENV_VERSION#ruby-}"
|
||||
else
|
||||
echo "rbenv: version \`$RBENV_VERSION' is not installed" >&2
|
||||
|
|
|
@ -57,9 +57,5 @@ setup() {
|
|||
cat > ".ruby-version" <<<"ruby-1.8.7"
|
||||
run rbenv-version-name
|
||||
assert_success
|
||||
assert_output <<OUT
|
||||
warning: ignoring extraneous \`ruby-' prefix in version \`ruby-1.8.7'
|
||||
(set by ${PWD}/.ruby-version)
|
||||
1.8.7
|
||||
OUT
|
||||
assert_output "1.8.7"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue