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