Skip to content

Commit bb2614d

Browse files
committed
chore: add a sanity check for three structure
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
1 parent 0f94425 commit bb2614d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ SHELL := $(shell which bash 2>/dev/null || echo /bin/sh)
77
FILES := $(shell find . -type f -name metadata.hcl)
88
DIRS := $(patsubst %/,%,$(patsubst ./%,%,$(dir $(FILES))))
99

10+
ifeq ($(DIRS),)
11+
$(error No subdirectories with metadata.hcl files found)
12+
endif
13+
1014
# Create push targets for each directory
1115
PUSH_TARGETS := $(addprefix push-,$(DIRS))
1216

0 commit comments

Comments
 (0)