#!/bin/sh
# Author: Nikhil Lanjewar <nikhil@lanjewar.com>
# Author: Sahil Muthoo <sahilm@thoughtworks.com>
# Author: Sahil Aggarwal <sahilagg@gmail.com>
# Author: Saager Mhatre <saager.mhatre@gmail.com>
# Christoph Galuschka <christoph.galuschka@chello.at>
t_Log "Running $0 - Check version of ruby."
v=$( ruby -v )
if (t_GetPkgRel basesystem | grep -q el5)
then
ruby -v | grep -q '1.8.5'
ret_val=$?
else
ruby -v | grep -q '1.8.7'
ret_val=$?
fi
t_CheckExitStatus $ret_val