install_mysql.sh: fix error in determin 'CURRENT_MAIN_VERSION'.

This commit is contained in:
Christoph 2019-10-29 02:30:03 +01:00
parent 57b3a382ce
commit 09503b925e

View File

@ -315,7 +315,7 @@ if $UPDATE_MYSQL ; then
echononl "Get current MySQL Version.."
CURRENT_VERSION="$(echo $_MYSQLD_VERSION | grep -o -E "[0-9]+\.[0-9]+\.[0-9]+(-[0-9]+)?")"
CURRENT_MAIN_VERSION="$(echo $MYSQL_VERSION | cut -d '.' -f1,2)"
CURRENT_MAIN_VERSION="$(echo $CURRENT_VERSION | cut -d '.' -f1,2)"
if [[ -n "$CURRENT_VERSION" ]]; then
echo_ok
else