See the tracker bug. if [[ $REPLACING_VERSIONS < "3.2.21-r1" ]]; then This doesn't account for RV being empty or having >1 value. Furthermore, < is lexicographical string comparison, so e.g. 10 < 1.
Fixed