Skip to content

Commit

Permalink
Fix grep
Browse files Browse the repository at this point in the history
  • Loading branch information
typicode committed Jan 21, 2017
1 parent ae14df2 commit 0de7710
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ function getHookScript (hookName, relativePath, cmd) {
'}',
'',

// https://github.com/typicode/husky/issues/76
'has_hook_script () {',
' [ -f package.json ] && cat package.json | grep -q "\\"$1\\"\\s*:"',
' [ -f package.json ] && cat package.json | grep -q "\\"$1\\"[[:space:]]*:"',
'}',
''
]
Expand Down

0 comments on commit 0de7710

Please sign in to comment.