diff --git a/.github/scripts/spelling.sh b/.github/scripts/spelling.sh index 7813b4bd3c..26181428d0 100755 --- a/.github/scripts/spelling.sh +++ b/.github/scripts/spelling.sh @@ -24,10 +24,9 @@ printf '%s\n' 'Checking document content...' pnpm cspell lint --root="$root" --no-progress --show-context '**/*.md' '**/*.mdx' || rc="$?" printf '\n%s\n' 'Checking file names...' -find "$root"/docs "$root"/src/pages | pnpm cspell --no-progress --show-context stdin://'File Name' || rc="$?" +find "$root"/docs "$root"/src/pages | sed "s|^$root/||" | pnpm cspell --no-progress --show-context stdin://'File Name' || rc="$?" if [ "$rc" != 0 ]; then - # TODO Update this link to master when the new website's branch is merged. printf '\n%s\n%s\n' 'Spell check failed. See CONTRIBUTING.md for help fixing false positive spelling errors:' \ 'https://github.com/apache/ozone-site/blob/master/CONTRIBUTING.md#spelling' 1>&2 fi