scripts/match in rvm-1.0.9 vs scripts/match in rvm-1.0.10
- old
+ new
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
if [[ -z "${1:-""}" ]] || [[ -z "${2:-""}" ]] ; then exit 1 ; fi
-if [[ -n "$(echo "${1}" | awk "/${2}/")" ]] ; then exit 0 ; else exit 1 ; fi
+if [[ -n "$(echo "${1}" | awk "/${2//\//\/}/")" ]] ; then exit 0 ; else exit 1 ; fi