Skip to content

Commit 96c990c

Browse files
committed
fix
1 parent 8241e18 commit 96c990c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.mise/tasks/lint/markdown.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44

55
set -e
66

7+
ignores=("#**/build" "#**/node_modules" "#CHANGELOG.md" "#ibm-mq-metrics/docs/metrics.md" "#.github/pull_request_template.md")
8+
79
if [ "${usage_fix}" = "true" ]; then
8-
opt_fix="--fix"
10+
markdownlint-cli2 --fix "**/*.md" "${ignores[@]}"
11+
else
12+
markdownlint-cli2 "**/*.md" "${ignores[@]}"
913
fi
10-
11-
markdownlint-cli2 ${opt_fix} "**/*.md" "#**/build" "#**/node_modules" "#CHANGELOG.md" "#ibm-mq-metrics/docs/metrics.md" "#.github/pull_request_template.md"

mise.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ idiomatic_version_file_enable_tools = []
1010
# Based on: https://github.com/jdx/mise/discussions/4461
1111
windows_executable_extensions = ["sh"]
1212
windows_default_file_shell_args = "bash"
13+
unix_default_file_shell_args = "bash"
1314
use_file_shell_for_executable_tasks = true
1415

1516
[tasks."lint:markdown"]

0 commit comments

Comments
 (0)