diff --git a/gravity-sync.sh b/gravity-sync.sh index 9f6096c..a968bb6 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -402,7 +402,7 @@ function smart_gs { last_primaryDBMD5=$(sed "1q;d" ${LOG_PATH}/${HISTORY_MD5}) last_secondDBMD5=$(sed "2q;d" ${LOG_PATH}/${HISTORY_MD5}) last_primaryCLMD5=$(sed "3q;d" ${LOG_PATH}/${HISTORY_MD5}) - last_secondCLMD5=$(sed "4q;d" ${LOG_PATH}/{HISTORY_MD5}) + last_secondCLMD5=$(sed "4q;d" ${LOG_PATH}/{$HISTORY_MD5}) else last_primaryDBMD5="0" last_secondDBMD5="0"