See the tracker bug. if [[ ${REPLACING_VERSIONS} < 2.0 ]]; then Doesn't account for >1 value in RV. Furthermore, string comparison on numbers.