From efc8cb9fc29e0ba6ded1b2b5138f8f1e0f8fec05 Mon Sep 17 00:00:00 2001 From: Christoph Date: Fri, 1 Nov 2019 03:14:57 +0100 Subject: [PATCH] install_mysql.sh: Fix error in determin 'CURRENT_VERSION' in case of MySQL 8.0.x --- install_mysql.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_mysql.sh b/install_mysql.sh index 0aa909c..db97980 100755 --- a/install_mysql.sh +++ b/install_mysql.sh @@ -314,7 +314,7 @@ if $UPDATE_MYSQL ; then echo_ok echononl "Get current MySQL Version.." - CURRENT_VERSION="$(echo $_MYSQLD_VERSION | grep -o -E "[0-9]+\.[0-9]+\.[0-9]+(-[0-9]+)?")" + CURRENT_VERSION="$(echo $_MYSQLD_VERSION | grep -o -E "[0-9]+\.[0-9]+\.[0-9]+(-[0-9]+)?" | head -n 1)" CURRENT_MAIN_VERSION="$(echo $CURRENT_VERSION | cut -d '.' -f1,2)" if [[ -n "$CURRENT_VERSION" ]]; then echo_ok