Skip to content

Commit

Permalink
Use shellcheck suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
xylo04 committed May 31, 2021
1 parent 2fafbf9 commit c5fa2d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh
. "$(dirname $0)/_/husky.sh"
#!/bin/bash
. "$(dirname "$0")/_/husky.sh"

# Make sure any changed source is pretty-fied
STAGED=`git diff --name-only --staged --diff-filter d`
STAGED=$(git diff --name-only --staged --diff-filter d)
npx prettier --write {src,test}/**/*.ts
git add $STAGED
git add "$STAGED"

0 comments on commit c5fa2d2

Please sign in to comment.