You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/wrong-filename.sh
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ set -e
17
17
# Iterate through all Markdown files in the 'pages' directories
18
18
find pages* -name '*.md' -type f |whileread -r path;do
19
19
# Extract the expected command name from the filename
20
-
COMMAND_NAME_FILE=$(basename "$path"| head -c-4 | sed 's/\.fish//'| sed 's/\.js//'| sed 's/\.1//'| tr '-'''| tr '[:upper:]''[:lower:]')
20
+
COMMAND_NAME_FILE=$(basename "$path"| head -c-4 | sed 's/\.fish//'| sed 's/\.js//'| sed 's/\.1//'|sed 's/\.2//'| sed 's/\.3//'|tr '-'''| tr '[:upper:]''[:lower:]')
21
21
22
22
# Extract the command name from the first line of the Markdown file
0 commit comments