Skip to content

Commit bc10598

Browse files
committed
fix: merge var names
ref: #13
1 parent d68d763 commit bc10598

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

includes/entrypoint.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ build_child() {
113113
merge_child() {
114114

115115
docs_path="$1"
116-
repo_user="$2"
116+
repo_user="$(printf '%s' "$2" | tr '/' '_')"
117117
repo_name="$3"
118118

119119
echo "Begin Merging Child: ${docs_path}";
@@ -122,11 +122,11 @@ merge_child() {
122122

123123
# rm -rf ${HOME_DIR}/docs/${docs_path}/*;
124124

125-
cp -afr ${HOME_DIR}/artifacts/${child_repo_user}/${child_repo_name}/docs/${docs_path}/. ${HOME_DIR}/${MKDOCS_SRC_DIRECTORY}/${docs_path}/
125+
cp -afr ${HOME_DIR}/artifacts/${repo_user}/${repo_name}/docs/${docs_path}/. ${HOME_DIR}/${MKDOCS_SRC_DIRECTORY}/${docs_path}/
126126

127127
echo "Merge Child Docs: docs/${docs_path}/";
128128

129-
cp -afr ${HOME_DIR}/artifacts/${child_repo_user}_${child_repo_name}/${docs_path}/. ${HOME_DIR}/artifacts/pages/${docs_path}/;
129+
cp -afr ${HOME_DIR}/artifacts/${repo_user}_${repo_name}/${docs_path}/. ${HOME_DIR}/artifacts/pages/${docs_path}/;
130130

131131
}
132132

0 commit comments

Comments
 (0)