cleanup: update command in wrong-filename.sh

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
pull/23/head
K.B.Dharun Krishna 2023-12-21 21:14:35 +05:30
parent 2550de7185
commit 5f0fa5d873
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ rm -f "$OUTPUT_FILE"
set -e
# Iterate through all Markdown files in the 'pages' directories
for path in $(find pages* -name '*.md' -type f); do
find pages* -name '*.md' -type f | while read -r path; do
# Extract the expected command name from the filename
COMMAND_NAME_FILE=$(basename "$path" | head -c-4 | tr '-' ' ' | tr '[:upper:]' '[:lower:]')