remove bashism

This was introduced in #780.
This commit is contained in:
Matthias Radestock committed 2015-05-31 11:51:34 +01:00
1 parent 10a9f58d13
commit 5f385a297c
1 file changed
+1 -1
+1 -1
View File
@@ -171,7 +171,7 @@ DNS_HTTP_PORT=6785
PROXY_PORT=12375
PROXY_CONTAINER_NAME=weaveproxy
PROXY_HOST="localhost"
if [[ "$DOCKER_HOST" == "tcp://"* ]]; then
if [ "$DOCKER_HOST" != "${DOCKER_HOST#tcp://}" ] ; then
PROXY_HOST=$(echo "$DOCKER_HOST" | sed -e "s|tcp://\([^:]*\):[0-9]*|\1|")
fi