Permalink
Browse files

Move so that you can still push containers without ports.

  • Loading branch information...
darron committed Jun 3, 2014
1 parent 4794e8a commit 747ec50bbaef5ab3622d1a3e70d61cf874acd07b
Showing with 10 additions and 10 deletions.
  1. +10 −10 bin/receiver.sh
View
@@ -96,6 +96,16 @@ then
PORT=$(sudo docker port $ID $INTERNAL_PORT | sed 's/0.0.0.0://')
fi
+ NO_HTTP_PROXY=$(grep -i "^# NO_HTTP_PROXY" $DOCKERFILE)
+ if [ -n "$NO_HTTP_PROXY" ]
+ then
+ if [ -n "$PORT" ]
+ then
+ echo "Port: $PORT"
+ fi
+ exit
+ fi
+
if [ -z "$PORT" ]
then
echo "#################################################"
@@ -121,16 +131,6 @@ else
exit
fi
-NO_HTTP_PROXY=$(grep -i "^# NO_HTTP_PROXY" $DOCKERFILE)
-if [ -n "$NO_HTTP_PROXY" ]
-then
- if [ -n "$PORT" ]
- then
- echo "Port: $PORT"
- fi
- exit
-fi
-
if [ -n "$XIP_IO" ]
then
echo "Adding http://$BASE.$XIP_IO"

0 comments on commit 747ec50

Please sign in to comment.