From 8787ef57b5054630445a2e75208c66d58da39bfa Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Wed, 28 May 2025 13:17:28 +0200 Subject: [PATCH] Update tools.func --- misc/tools.func | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/tools.func b/misc/tools.func index be5e92888..71d0a8ba2 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -246,7 +246,7 @@ install_mariadb() { local CURRENT_VERSION="" if command -v mariadb >/dev/null; then - CURRENT_VERSION="$(mariadb --version | grep -oP 'Ver\s+\K[0-9]+\.[0-9]+')" + CURRENT_VERSION=$(mariadb --version | grep -oE '[0-9]+\.[0-9]+\.[0-9]+') fi if [[ "$CURRENT_VERSION" == "$MARIADB_VERSION" ]]; then