Skip to content

Commit f126552

Browse files
authored
Update commit-msg.sh
1 parent 4a258f6 commit f126552

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

commit-msg.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/sh
22

3-
if command -v git-conventional-commits > /dev/null 2>&1
3+
if command -v npx > /dev/null 2>&1
44
then
55
# fix for windows systems
66
PATH="/c/Program Files/nodejs:$HOME/AppData/Roaming/npm/:$PATH"
7-
git-conventional-commits commit-msg-hook "$1"
8-
fi
7+
npx --yes git-conventional-commits commit-msg-hook "$1"
8+
fi

0 commit comments

Comments
 (0)