m3-academy-template-vtexio-.../.husky/common.sh
Caroline Moran f2a03c53ae first commit
2022-08-11 09:06:07 -04:00

9 lines
169 B
Bash

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