scripts/match in rvm-0.0.96 vs scripts/match in rvm-0.0.97
- old
+ new
@@ -6,10 +6,10 @@
if [[ ! -z "$BASH_VERSION" ]] && [[ ${BASH_VERSION:0:1} -gt 2 ]] ; then
[[ "$1" =~ $2 ]]
exit $?
else
- if [ ! -z "$(echo "$1" | awk "/${2}/")" ] ; then
+ if echo "$1" | grep -q "${2}" ; then
exit 0
else
exit 1
fi
fi