From 545ef6851b3a80742d44d54ce5faa71de9763a25 Mon Sep 17 00:00:00 2001 From: c-bordon Date: Tue, 3 Oct 2023 16:59:08 -0300 Subject: [PATCH] Fixed validation --- build-docker-images/build-images.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-docker-images/build-images.sh b/build-docker-images/build-images.sh index 9ddc0c6c..d521bd05 100755 --- a/build-docker-images/build-images.sh +++ b/build-docker-images/build-images.sh @@ -38,7 +38,7 @@ build() { if [ "${WAZUH_DEV_STAGE}" ];then FILEBEAT_TEMPLATE_BRANCH="v${FILEBEAT_TEMPLATE_BRANCH}-${WAZUH_DEV_STAGE,,}" - if curl --output /dev/null --silent --head --fail "https://github.com/wazuh/wazuh/tree/${FILEBEAT_TEMPLATE_BRANCH}"; then + if ! curl --output /dev/null --silent --head --fail "https://github.com/wazuh/wazuh/tree/${FILEBEAT_TEMPLATE_BRANCH}"; then echo "The indicated branch does not exist in the wazuh/wazuh repository: ${FILEBEAT_TEMPLATE_BRANCH}" clean 1 fi