From 09503b925e934a59d57f50728bbae39da31a2aeb Mon Sep 17 00:00:00 2001 From: Christoph Date: Tue, 29 Oct 2019 02:30:03 +0100 Subject: [PATCH] install_mysql.sh: fix error in determin 'CURRENT_MAIN_VERSION'. --- install_mysql.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_mysql.sh b/install_mysql.sh index bc392b7..0aa909c 100755 --- a/install_mysql.sh +++ b/install_mysql.sh @@ -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