fix: mysqltest reboot cp

This commit is contained in:
obdev 2023-04-19 09:44:58 +00:00 committed by ob-robot
parent dae837d151
commit f01b5a5ae1

View File

@ -595,7 +595,7 @@ function main() {
if [[ -f ${OBD_LOCAL_VERSION_PATH} ]]
then
obd_local_version=`cat ${OBD_LOCAL_VERSION_PATH}`
obd_deps_version=`cat ${OBD_DEPS_PATH} | grep -E 'ob-deploy-' | grep -Eo '[0-9]+.[0-9]+.[0-9a-z]+-[0-9]+'`
obd_deps_version=`cat ${OBD_DEPS_PATH} | grep -E '^ob-deploy-' | grep -Eo '[0-9]+.[0-9]+.[0-9a-z]+-[0-9]+' | head -n1`
obd_deps_version=${obd_deps_version/-/.}
if [[ ${obd_local_version} != ${obd_deps_version} ]]
then