You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
239 B

  1. #!/bin/bash
  2. # Grab OS type
  3. if [[ "$(uname)" == "Darwin" ]]; then
  4. OS_TYPE="OSX"
  5. else
  6. OS_TYPE=$(expr substr $(uname -s) 1 5)
  7. fi
  8. DOCKER_CMD=docker
  9. if [[ $OS_TYPE == "MINGW" ]]; then
  10. DOCKER_CMD="winpty docker"
  11. fi
  12. export DOCKER_CMD