From f123e58a0ceafe215e8027f7bf4969842a161274 Mon Sep 17 00:00:00 2001 From: Gregan Date: Thu, 29 Jul 2021 17:57:33 +0200 Subject: [PATCH] ajout tests --- testWeb.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/testWeb.sh b/testWeb.sh index 1bd88b2..5badcca 100755 --- a/testWeb.sh +++ b/testWeb.sh @@ -1,9 +1,6 @@ #!/bin/bash echo "TEST HUGO" -response=$(curl -s http://localhost:6060) -#if ["$reponse" != "200"] -#then - # exit 1 -#fi -echo $reponse +url=http://localhost:6060 +curl ${url} -I -o headers -s +cat headers | head -n 1 | cut '-d ' '-f2'