m3-academy-template-checkou.../.husky/common.sh

9 lines
169 B
Bash
Raw Normal View History

2022-12-05 18:23:46 +00:00
command_exists () {
command -v "$1" >/dev/null 2>&1
}
# Workaround for Windows 10, Git Bash and Yarn
if command_exists winpty && test -t 1; then
exec < /dev/tty
fi