Skip to content

Commit

Permalink
full path everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisPalnitsky committed Jun 19, 2022
1 parent a993057 commit 4db0b6d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ echo "Current dir: " $(pwd)
echo "Current files:"
ls
echo List of mermaid files:
ls ./mermaid
for file in ./mermaid/*.mmd; do
ls $PWD/mermaid
for file in $PWD/mermaid/*.mmd; do
file_only=${file##*/}
name=${file_only%.mmd}
name=${name#structurizr-}
echo "Processing $file"

echo "# ${name}" >> ./md/${name}.md
echo "\`\`\`mermaid" >> ./md/${name}.md
cat $file >> md/${name}.md
echo "" >> md/${name}.md
echo "\`\`\`" >> ./md/${name}.md
echo "# ${name}" >> $PWD/md/${name}.md
echo "\`\`\`mermaid" >> $PWD/md/${name}.md
cat $file >> $PWD/md/${name}.md
echo "" >> $PWD/md/${name}.md
echo "\`\`\`" >> $PWD/md/${name}.md

# add entry to index
echo "- [$name](md/$name.md)" >> $INDX
Expand Down

0 comments on commit 4db0b6d

Please sign in to comment.