Files
004_comission/vinniesniper-54816/task1/project/frontend/.husky/common.sh
louiscklaw 2f92062c07 update,
2025-01-31 22:32:41 +08:00

8 lines
168 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