Skip to content

Commit

Permalink
Merge pull request #155 from yujideveloper/bugfix/passing-textlint-flags
Browse files Browse the repository at this point in the history
fix: pass `textlint_flags` correctly to textlint
  • Loading branch information
tsuyoshicho authored Jun 23, 2021
2 parents cab6d9c + 35a19cc commit 7575ee3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ textlint_exit_val="0"
reviewdog_exit_val="0"

# shellcheck disable=SC2086
textlint_check_output=$(npx textlint -f checkstyle "${INPUT_TEXTLINT_FLAGS}" 2>&1) \
textlint_check_output=$(npx textlint -f checkstyle ${INPUT_TEXTLINT_FLAGS} 2>&1) \
|| textlint_exit_val="$?"

# shellcheck disable=SC2086
Expand All @@ -52,7 +52,7 @@ echo '::endgroup::'
if [[ "${INPUT_REPORTER}" == "github-pr-review" ]]; then
echo '::group:: Running textlint fixing report 🐶 ...'
# fix
npx textlint --fix "${INPUT_TEXTLINT_FLAGS:-.}" || true
npx textlint --fix ${INPUT_TEXTLINT_FLAGS:-.} || true

TMPFILE=$(mktemp)
git diff >"${TMPFILE}"
Expand Down

0 comments on commit 7575ee3

Please sign in to comment.