Skip to content

Commit 3885af8

Browse files
authored
docs: Use /usr/bin/env sh instead of direct path (#1020)
Co-authored-by: nathandao <[email protected]>
1 parent 0ef25e8 commit 3885af8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/usr/bin/env sh
22
. "$(dirname "$0")/_/husky.sh"
33

44
node bin/lint-staged.js

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ All examples assume you've already set up lint-staged in the `package.json` file
369369
In `.husky/pre-commit`
370370
371371
```shell
372-
#!/bin/sh
372+
#!/usr/bin/env sh
373373
. "$(dirname "$0")/_/husky.sh"
374374
375375
npx lint-staged

0 commit comments

Comments
 (0)