diff --git a/scripts/manage b/scripts/manage index 9867ef931c..40322eb2da 100755 --- a/scripts/manage +++ b/scripts/manage @@ -332,7 +332,7 @@ RubyWrapper if [[ "$rvm_head_flag" = 1 ]] ; then mono_version="$(mono -V | head -n 1 | cut -d ' ' -f5)" if [[ "$mono_version" =~ ([0-9]+)\.([0-9]+)\.?([0-9]+)? ]] ; then - if [[ ${BASH_REMATCH[1]} -lt 2 ]] || [[ ${BASH_REMATCH[2]} -lt 6 ]] ; then + if [[ ${BASH_REMATCH[1]} -lt 2 ]] || ( [[ ${BASH_REMATCH[1]} -eq 2 ]] && [[ ${BASH_REMATCH[2]} -lt 6 ]] ) ; then echo -e "Mono 2.6 (or greater) must be installed and in your path in order to build IronRuby from the repository." echo -e "Version detected: ${BASH_REMATCH[0]}" return 1