Skip to content

Commit 489ff5d

Browse files
committed
#754 Change dir directly at necessary place
Forunknown reason helm-docs need to be in the scanner dir. Maybe it assumes some files relative to the Chart.yaml Until I discovered this issue using the cd as workaround. Signed-off-by: Sven Strittmatter <sven.strittmatter@iteratec.com>
1 parent e434eba commit 489ff5d

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎Makefile‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,24 +84,23 @@ scanner-docs:
8484
docs_dir="$${dir}/docs"; \
8585
parser_dir="$${dir}/parser"; \
8686
scanner_dir="$${dir}/scanner"; \
87-
cd "$${dir}" || exit; \
8887
if [ -d "$${docs_dir}" ]; then \
8988
echo "Docs Folder found at: $${docs_dir}"; \
9089
if [ -d "$${parser_dir}" ]; then \
9190
echo "Parser found at: $${parser_dir}"; \
92-
helm-docs --template-files=$(HELM_DOCS_DIR)/templates.gotmpl \
91+
cd "$${dir}" && helm-docs --template-files=$(HELM_DOCS_DIR)/templates.gotmpl \
9392
--template-files=.helm-docs.gotmpl \
9493
--template-files=$(HELM_DOCS_DIR)/README.DockerHub-Parser.md.gotmpl \
9594
--output-file=$${docs_dir}/README.DockerHub-Parser.md; \
9695
fi; \
9796
if [ -d "$${scanner_dir}" ]; then \
9897
echo "Scanner found at: $${scanner_dir}"; \
99-
helm-docs --template-files=$(HELM_DOCS_DIR)/templates.gotmpl \
98+
cd "$${dir}" && helm-docs --template-files=$(HELM_DOCS_DIR)/templates.gotmpl \
10099
--template-files=.helm-docs.gotmpl \
101100
--template-files=$(HELM_DOCS_DIR)/README.DockerHub-Scanner.md.gotmpl \
102101
--output-file=$${docs_dir}/README.DockerHub-Scanner.md; \
103102
fi; \
104-
helm-docs --template-files=$(HELM_DOCS_DIR)/templates.gotmpl \
103+
cd "$${dir}" && helm-docs --template-files=$(HELM_DOCS_DIR)/templates.gotmpl \
105104
--template-files=.helm-docs.gotmpl \
106105
--template-files=$(HELM_DOCS_DIR)/README.ArtifactHub.md.gotmpl \
107106
--output-file=$${docs_dir}/README.ArtifactHub.md; \

0 commit comments

Comments
 (0)