Merged in [17486] from valery@smyslov.net:

Add docker/run modifications to support Cygwin.
 - Legacy-Id: 17506
Note: SVN reference [17486] has been migrated to Git commit f89dd2da7b
This commit is contained in:
Henrik Levkowetz 2020-03-22 16:29:11 +00:00
commit ff7571f6e8

View file

@ -133,6 +133,12 @@ if [ "$(uname)" = "Darwin" ]; then
CMD="open -a"
elif [ "$(uname)" = "Linux" ]; then
echo "Running on Linux."
elif [[ $(uname) =~ CYGWIN.* ]]; then
echo "Running under Cygwin."
APP="Don't know how to start Docker when running under Cygwin"
CMD="echo"
MYSQLDIR=$(echo $MYSQLDIR | sed -e 's/^\/cygdrive\/\(.\)/\1:/')
WHO=$(echo $WHO | sed -e 's/^.*\\//' | tr -d \\r)
else
die "This script does not have support for your architecture ($(uname)); sorry :-("
fi
@ -184,7 +190,6 @@ else
fi
fi
image=$(docker ps | grep "$REPO:$TAG" | awk '{ print $1 }')
if [ "$image" ]; then
if [ "$*" ]; then