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:
commit
ff7571f6e8
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue