From cfebbdc233f8a2e71f7cbdce2316de3265bfb238 Mon Sep 17 00:00:00 2001 From: Andy Kluger Date: Sat, 9 Nov 2024 17:03:31 -0500 Subject: [PATCH] Use shell feature instead of sed --- mk/doc/templates.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mk/doc/templates.sh b/mk/doc/templates.sh index 6e2024e..8c9b188 100755 --- a/mk/doc/templates.sh +++ b/mk/doc/templates.sh @@ -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