sd-webui-kitchen-theme-legacy/.husky/prepare-commit-msg

10 lines
170 B
Bash

#!/usr/bin/env sh
# gitmoji as a commit hook
if npx -v >&/dev/null
then
exec < /dev/tty
npx -c "gitmoji --hook $1 $2"
else
exec < /dev/tty
gitmoji --hook $1 $2
fi