#!/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
gitmoji --hook $1 $2
fi