wireguard-dashboard-admin/.husky/common.sh

10 lines
179 B
Bash
Raw Permalink Normal View History

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