Skip to content

Commit ff7571f

Browse files
committed
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 f89dd2d
2 parents d783790 + f89dd2d commit ff7571f

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

docker/run

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,12 @@ if [ "$(uname)" = "Darwin" ]; then
133133
CMD="open -a"
134134
elif [ "$(uname)" = "Linux" ]; then
135135
echo "Running on Linux."
136+
elif [[ $(uname) =~ CYGWIN.* ]]; then
137+
echo "Running under Cygwin."
138+
APP="Don't know how to start Docker when running under Cygwin"
139+
CMD="echo"
140+
MYSQLDIR=$(echo $MYSQLDIR | sed -e 's/^\/cygdrive\/\(.\)/\1:/')
141+
WHO=$(echo $WHO | sed -e 's/^.*\\//' | tr -d \\r)
136142
else
137143
die "This script does not have support for your architecture ($(uname)); sorry :-("
138144
fi
@@ -184,7 +190,6 @@ else
184190
fi
185191
fi
186192

187-
188193
image=$(docker ps | grep "$REPO:$TAG" | awk '{ print $1 }')
189194
if [ "$image" ]; then
190195
if [ "$*" ]; then

0 commit comments

Comments
 (0)