Skip to content

Commit

Permalink
馃悰 Fix hook shebang (#1085)
Browse files Browse the repository at this point in the history
  • Loading branch information
carloscuesta committed May 9, 2023
1 parent 654ec1c commit 98324e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/commands/hook/hook.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const HOOK: Object = {
PERMISSIONS: 0o775,
FILENAME: 'prepare-commit-msg',
CONTENTS:
'#!/usr/bin/env sh\n# gitmoji as a commit hook\n' +
'#!/usr/bin/env bash\n# gitmoji as a commit hook\n' +
'if npx -v >&/dev/null\n' +
'then\n' +
' exec < /dev/tty\n npx -c "gitmoji --hook $1 $2"\n' +
Expand Down
2 changes: 1 addition & 1 deletion test/commands/__snapshots__/hook.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`hook command should match hook configuration 1`] = `
{
"CONTENTS": "#!/usr/bin/env sh
"CONTENTS": "#!/usr/bin/env bash
# gitmoji as a commit hook
if npx -v >&/dev/null
then
Expand Down

0 comments on commit 98324e9

Please sign in to comment.