Skip to content

Commit

Permalink
ensure directory exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Perfect5th committed Jan 21, 2024
1 parent f363ac1 commit a068b95
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions convert.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

FILES=$(find ./markdown -type f -name '*.md')

mkdir -p ./_site

for FILE in $FILES; do
HTML_PATH=$(echo "$FILE" | sed -e 's/\.md$/\.html/' | sed -e 's/^\.\/markdown/\.\/_site/')
echo "Creating $HTML_PATH"
Expand Down

0 comments on commit a068b95

Please sign in to comment.