Permalink
Browse files

Adjusted __rvm_18_compat_ruby to exclude rbx, since we do not want rb…

…x to build rbx.
  • Loading branch information...
1 parent cb649ba commit 9597dfe4638444e33851e8dc02396aa71a41a8da @wayneeseguin wayneeseguin committed May 14, 2011
Showing with 8 additions and 14 deletions.
  1. +8 −14 scripts/functions/build
View
22 scripts/functions/build
@@ -108,29 +108,23 @@ __rvm_mono_env()
# with things like rbx etc which require a ruby be installed.
__rvm_18_compat_ruby()
{
- local rubies ruby_name list
+ local rubies ruby_name list=()
rubies=($( cd "$rvm_rubies_path" ; find . -maxdepth 1 -mindepth 1 -type d ))
- for ruby_name in "${rubies[@]//.\/}"; do
-
- if [[ ! -L "$rvm_rubies_path/$ruby_name" ]] ; then
-
+ for ruby_name in "${rubies[@]//.\/}"
+ do
+ if [[ ! -L "$rvm_rubies_path/$ruby_name" ]]
+ then
case $ruby_name in
- macruby*|goru*|jruby*)
- true # noop
- ;;
- *1.8.*|rbx-*|ree-*)
- list="$rubies $ruby_name"
- ;;
- *)
- true # noop
+ *1.8.*|ree*)
+ list+=("$ruby_name")
;;
esac
fi
done
- echo "$list" | \tr ' ' '\n' | \sort | \tail -n1
+ echo "${list[*]}" | tr ' ' '\n' | sort | tail -n1
return 0
}

0 comments on commit 9597dfe

Please sign in to comment.