From 5f0fa5d873987c2d2143a45d1ba18f0a06c2d962 Mon Sep 17 00:00:00 2001 From: "K.B.Dharun Krishna" Date: Thu, 21 Dec 2023 21:14:35 +0530 Subject: [PATCH] cleanup: update command in wrong-filename.sh Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> --- scripts/wrong-filename.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/wrong-filename.sh b/scripts/wrong-filename.sh index 6145fb240f..84e386b0e5 100755 --- a/scripts/wrong-filename.sh +++ b/scripts/wrong-filename.sh @@ -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:]')