common.sh 179 B

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