File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,18 @@ function apply-configurations() {
1010 SAMPLENAME=$2
1111 TEMPLATE_TECHDOC_TYPE=$3
1212
13- cp -r $ROOT_DIR /documentation/$TEMPLATE_TECHDOC_TYPE /$SAMPLENAME $DEST /docs
14- cp -r $ROOT_DIR /documentation/$TEMPLATE_TECHDOC_TYPE /mkdocs.yml $DEST /mkdocs.yml
15- cp $ROOT_DIR /documentation/$TEMPLATE_TECHDOC_TYPE /template-prerequisites.md $DEST /docs/template-prerequisites.md
13+ DOC_SRC_ROOT=" $ROOT_DIR /documentation/$TEMPLATE_TECHDOC_TYPE "
14+ SAMPLE_DOC_SRC=" $DOC_SRC_ROOT /$SAMPLENAME "
15+ PREREQ_DOC_SRC=" $DOC_SRC_ROOT /template-prerequisites.md"
16+ if [ -d $DOC_SRC_ROOT ]; then
17+ if [ -d $SAMPLE_DOC_SRC ]; then
18+ cp -r $SAMPLE_DOC_SRC $DEST /docs
19+ if [ -f $PREREQ_DOC_SRC ]; then
20+ cp $PREREQ_DOC_SRC $DEST /docs/template-prerequisites.md
21+ fi
22+ fi
23+ cp -r $DOC_SRC_ROOT /mkdocs.yml $DEST /mkdocs.yml
24+ fi
1625
1726 cp $SKELETON_DIR /template.yaml $DEST /template.yaml
1827
You can’t perform that action at this time.
0 commit comments