From 41e7f1b26ceabd323426e209d552880f4887b9d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88?= Date: Mon, 9 Jun 2025 15:05:25 -0400 Subject: [PATCH] feat: catching docker error codes --- go.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/go.sh b/go.sh index de09465..aa09ab1 100644 --- a/go.sh +++ b/go.sh @@ -2,5 +2,10 @@ export IP_ADDRESS=$(/sbin/ip -o -4 addr list eno2 | awk '{print $4}' | cut -d/ - cp /secrets/certs/* nginx/filesystem/etc/nginx/certs docker compose build --build-arg IP_ADDRESS=$IP_ADDRESS +if [ "$?" != "0" ] +then + exit 1 +fi + docker compose down docker compose up -d