sd-webui-lobe-theme/.husky/prepare-commit-msg
2023-04-23 18:11:03 +08:00

10 lines
170 B
Bash
Executable File

#!/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