Files
SOP/sop-admin/sop-admin-frontend/.husky/common.sh
六如 403e8111f4 5.0
2024-12-22 23:09:46 +08:00

10 lines
179 B
Bash
Executable File

#!/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