From dd9b5d5e160112b5a441ebd798cc87eb579150dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Mei=C3=9Fner?= Date: Fri, 20 Oct 2023 18:43:27 +0200 Subject: [PATCH] fix some issues found by codacy --- tests/docker/setup_database.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/docker/setup_database.sh b/tests/docker/setup_database.sh index 2492026..ec27dc6 100644 --- a/tests/docker/setup_database.sh +++ b/tests/docker/setup_database.sh @@ -7,17 +7,17 @@ function info() { echo "${@}" >&10 } -MYSQL_PING='mysqladmin ping -h ${DB_HOST:-127.0.0.1} -P ${DB_PORT:-3306} -u ${MYSQL_ROOT_USER:-root} -p${MYSQL_ROOT_PASSWORD:-rootpw}' +MYSQL_PING="mysqladmin ping -h ${DB_HOST:-127.0.0.1} -P ${DB_PORT:-3306} -u ${MYSQL_ROOT_USER:-root} -p${MYSQL_ROOT_PASSWORD:-rootpw}" if grep -q podman <<< $(docker --version 2> /dev/null) ; then info "Podman is installed" DOCKER_CMD=$(which podman) fi -if ${DOCKER_CMD} ps | grep -q docker_phpipam_1 && ! eval ${MYSQL_PING} ; then +if "${DOCKER_CMD}" ps | grep -q docker_phpipam_1 && ! eval "${MYSQL_PING}" ; then info -n "Waiting for database connection " - while ! eval ${MYSQL_PING} ; do + while ! eval "${MYSQL_PING}" ; do info -n "." sleep 1 done