mirror of https://github.com/CrimsonTome/tldr.git
cleanup: update command in wrong-filename.sh
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>pull/23/head
parent
2550de7185
commit
5f0fa5d873
|
@ -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:]')
|
||||
|
||||
|
|
Loading…
Reference in New Issue