Skip to content

Commit

Permalink
Update tools/fmt.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jun 21, 2021
1 parent d5392e0 commit 7347627
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/fmt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ cd "$(cd "$(dirname "${0}")" && pwd)"/..
# shellcheck disable=SC2046
if [[ -z "${CI:-}" ]]; then
shfmt -l -w $(git ls-files '*.sh')
prettier -l -w $(git ls-files '*.yml')
prettier -l -w $(git ls-files '*.js')
if prettier --version &>/dev/null; then
prettier -l -w $(git ls-files '*.yml')
prettier -l -w $(git ls-files '*.js')
fi
else
shfmt -d $(git ls-files '*.sh')
prettier -c $(git ls-files '*.yml')
Expand Down

0 comments on commit 7347627

Please sign in to comment.