Skip to content

Commit

Permalink
docs: Use /usr/bin/env sh instead of direct path (#1020)
Browse files Browse the repository at this point in the history
Co-authored-by: nathandao <nd@nathan.fi>
  • Loading branch information
nathandao and nathandao committed Sep 27, 2021
1 parent 0ef25e8 commit 3885af8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh
. "$(dirname "$0")/_/husky.sh"

node bin/lint-staged.js
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -369,7 +369,7 @@ All examples assume you've already set up lint-staged in the `package.json` file
In `.husky/pre-commit`
```shell
#!/bin/sh
#!/usr/bin/env sh
. "$(dirname "$0")/_/husky.sh"
npx lint-staged
Expand Down

0 comments on commit 3885af8

Please sign in to comment.