aboutsummaryrefslogtreecommitdiff
path: root/docker/start.sh
diff options
context:
space:
mode:
Diffstat (limited to 'docker/start.sh')
-rwxr-xr-xdocker/start.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/start.sh b/docker/start.sh
index 0ac47da9..be075f06 100755
--- a/docker/start.sh
+++ b/docker/start.sh
@@ -6,7 +6,7 @@ create_socat_links() {
while read -r NAME ADDR PORT; do
if test -z "$NAME$ADDR$PORT"; then
continue
- elif echo $USED_PORT | grep -E "(^|:)$PORT($|:)" > /dev/null; then
+ elif echo "$USED_PORT" | grep -E "(^|:)$PORT($|:)" > /dev/null; then
echo "init:socat | Can't bind linked container ${NAME} to localhost, port ${PORT} already in use" 1>&2
else
SERV_FOLDER=/app/gogs/docker/s6/SOCAT_${NAME}_${PORT}