From 549e3aae2ad235d8013858029129f64026bc1dc7 Mon Sep 17 00:00:00 2001 From: Gregan Date: Thu, 29 Jul 2021 16:51:11 +0200 Subject: [PATCH] ajout tests --- testWeb.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/testWeb.sh b/testWeb.sh index 01680dd..420e2a9 100755 --- a/testWeb.sh +++ b/testWeb.sh @@ -2,12 +2,10 @@ echo "TEST HUGO" -$response = curl http://localhost:6060 -if ($reponse == "HTTP/1.1 200 OK") -{ - exit 0; -} +$response = "curl http://localhost:6060" +if [$reponse == "HTTP/1.1 200 OK"] +then + exit 0 else -{ - exit 1; -} + exit 1 +fi