common.sh 179 B

12345678910
  1. #!/bin/sh
  2. command_exists () {
  3. command -v "$1" >/dev/null 2>&1
  4. }
  5. # Workaround for Windows 10, Git Bash and Yarn
  6. if command_exists winpty && test -t 1; then
  7. exec < /dev/tty
  8. fi