Commit 54301c16 by David Bayendor Committed by Mislav Marohnić

Don't display duplicate definitions

This fixes `rbenv install -l` displaying each version twice due to
RUBY_BUILD_DEFINITIONS path containing ruby-build's own definitions path
twice: both as an rbenv plugin and by appending its own internal path.
parent 194e007e
...@@ -969,7 +969,7 @@ list_definitions() { ...@@ -969,7 +969,7 @@ list_definitions() {
{ for DEFINITION_DIR in "${RUBY_BUILD_DEFINITIONS[@]}"; do { for DEFINITION_DIR in "${RUBY_BUILD_DEFINITIONS[@]}"; do
[ -d "$DEFINITION_DIR" ] && ls "$DEFINITION_DIR" [ -d "$DEFINITION_DIR" ] && ls "$DEFINITION_DIR"
done done
} | sort_versions } | sort_versions | uniq
} }
sort_versions() { sort_versions() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment