mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 08:53:39 +02:00
cleanup: update command in wrong-filename.sh
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
This commit is contained in:
parent
2550de7185
commit
5f0fa5d873
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ rm -f "$OUTPUT_FILE"
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Iterate through all Markdown files in the 'pages' directories
|
# 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
|
# Extract the expected command name from the filename
|
||||||
COMMAND_NAME_FILE=$(basename "$path" | head -c-4 | tr '-' ' ' | tr '[:upper:]' '[:lower:]')
|
COMMAND_NAME_FILE=$(basename "$path" | head -c-4 | tr '-' ' ' | tr '[:upper:]' '[:lower:]')
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue