forked from M3-Academy/m3-academy-template-checkout
9 lines
169 B
Bash
9 lines
169 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
|