Files
SOP/sop-admin/sop-admin-frontend/.husky/common.sh
六如 c08fec74c9 5.0
2024-10-04 21:48:38 +08:00

10 lines
179 B
Bash

#!/bin/sh
command_exists () {
command -v "$1" >/dev/null 2>&1
}
# Workaround for Windows 10, Git Bash and Pnpm
if command_exists winpty && test -t 1; then
exec < /dev/tty
fi