From 3614cdac77c8afb0fc2b7776d974e90cfc60bc97 Mon Sep 17 00:00:00 2001 From: marcelovicentegc Date: Thu, 14 Dec 2023 09:16:57 -0300 Subject: [PATCH] chore(docs-gen): remove out dir from index --- entrypoint.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index f5304ad..347cc99 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -48,6 +48,9 @@ echo "Loading index_manager and grabbing path to first html file" source index_manager.sh FIRST_HTML_FILE=$(find_first_html_file "$DOCS_DIRECTORY") +echo "Removing DOCS_DIRECTORY from FIRST_HTML_FILE path" +FIRST_HTML_FILE=${FIRST_HTML_FILE/$DOCS_DIRECTORY\//} + echo "Copying documentation to destination git repository" ls -la "$DOCS_DIRECTORY" cp -ra "$DOCS_DIRECTORY"/. "$CLONE_DIR"