See the tracker bug. if [[ ${REPLACING_VERSIONS} < 2.1.0016 ]]; then This does not account for empty RV or >1 value in RV. Furthermore, < is lexicographical string comparison, so 10 < 2.
Seems to have been fixed long ago.