Skip to content

Commit

Permalink
Manually merged nrk's patch for BASH_REMATCH check.
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneeseguin committed Dec 21, 2009
1 parent d471bb9 commit b199dac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/manage
Expand Up @@ -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
Expand Down

0 comments on commit b199dac

Please sign in to comment.