Skip to content

Commit

Permalink
Update commit-msg.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
qoomon authored Feb 26, 2024
1 parent 4a258f6 commit f126552
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions commit-msg.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/sh

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

0 comments on commit f126552

Please sign in to comment.