From c9596043d9993f86da44706eb610e0ef09ee1d66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Girardot?= Date: Tue, 25 Aug 2020 11:40:51 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20:=20Corrige=20script=20de=20test=20si=20c?= =?UTF-8?q?ontainer=20PHP=20lanc=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I44be117c2aaa76005f43c26d50896055c9a11ad5 --- bin/test-php-docker-running | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bin/test-php-docker-running b/bin/test-php-docker-running index c83b8e1..f6cda3f 100755 --- a/bin/test-php-docker-running +++ b/bin/test-php-docker-running @@ -1,8 +1,6 @@ #!/bin/bash -make docker-php-status > /dev/null 2>&1 - -if [ $? != 0 ] +if [[ $(make docker-php-status > /dev/null 2>&1) != 0 ]] then make docker-start > /dev/null fi @@ -11,4 +9,4 @@ fi if [ $? != 0 ] then exit 1 -fi \ No newline at end of file +fi -- GitLab