Skip to content

Commit 5f64c81

Browse files
authored
docs(README.md): update husky hook file creation (#3352)
1 parent d218e5b commit 5f64c81

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,12 @@ yarn husky install
109109
### Add hook
110110

111111
```sh
112-
cat <<EEE > .husky/commit-msg
112+
echo '
113113
#!/bin/sh
114114
. "\$(dirname "\$0")/_/husky.sh"
115115
116-
npx --no -- commitlint --edit "\${1}"
117-
EEE
116+
npx --no -- commitlint --edit ${1}
117+
' > .husky/commit-msg
118118
```
119119

120120
Make hook executable

0 commit comments

Comments
 (0)