Skip to content

Commit 044a137

Browse files
authored
HDDS-14734. Fix false positive spellcheck errors (#356)
1 parent fbae715 commit 044a137

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/scripts/spelling.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,9 @@ printf '%s\n' 'Checking document content...'
2424
pnpm cspell lint --root="$root" --no-progress --show-context '**/*.md' '**/*.mdx' || rc="$?"
2525

2626
printf '\n%s\n' 'Checking file names...'
27-
find "$root"/docs "$root"/src/pages | pnpm cspell --no-progress --show-context stdin://'File Name' || rc="$?"
27+
find "$root"/docs "$root"/src/pages | sed "s|^$root/||" | pnpm cspell --no-progress --show-context stdin://'File Name' || rc="$?"
2828

2929
if [ "$rc" != 0 ]; then
30-
# TODO Update this link to master when the new website's branch is merged.
3130
printf '\n%s\n%s\n' 'Spell check failed. See CONTRIBUTING.md for help fixing false positive spelling errors:' \
3231
'https://github.com/apache/ozone-site/blob/master/CONTRIBUTING.md#spelling' 1>&2
3332
fi

0 commit comments

Comments
 (0)