* windows adjust docker cmd

This commit is contained in:
toxa
2023-01-29 12:23:38 +03:00
parent 42d0209290
commit 0bbc4eedd7
7 changed files with 85 additions and 3 deletions

15
bash/_docker-cmd.sh Normal file
View File

@ -0,0 +1,15 @@
#!/bin/bash
# Grab OS type
if [[ "$(uname)" == "Darwin" ]]; then
OS_TYPE="OSX"
else
OS_TYPE=$(expr substr $(uname -s) 1 5)
fi
DOCKER_CMD=docker
if [[ $OS_TYPE == "MINGW" ]]; then
DOCKER_CMD="winpty docker"
fi
export DOCKER_CMD