Skip to content

Commit

Permalink
Use shell feature instead of sed
Browse files Browse the repository at this point in the history
  • Loading branch information
AndydeCleyre committed Nov 9, 2024
1 parent 615060f commit cfebbdc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mk/doc/templates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ fi
pip install -qr requirements.txt

for wz in *.wz; do
md="$(printf '%s\n' "$wz" | sed -E 's/\.wz$//')"
PYTHONPATH="$templates" wheezy.template "$wz" '{}' >"../src/${md}"
PYTHONPATH="$templates" wheezy.template "$wz" '{}' >"../src/${wz%.wz}"
done

0 comments on commit cfebbdc

Please sign in to comment.