Skip to content

Commit

Permalink
fix removing dashes and underscores from container name
Browse files Browse the repository at this point in the history
  • Loading branch information
DocX authored Feb 23, 2017
1 parent a20f382 commit 48c4a15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dex
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if [ -z "$SERVICE_NAME" ]; then
fi

# Lets assume the default project name derivated from dir name
COMPOSE_CONTAINER_NAME=$(basename $(pwd) | tr -d '[-_]')_${SERVICE_NAME}_1
COMPOSE_CONTAINER_NAME=$(basename $(pwd) | tr -d '[\-_]')_${SERVICE_NAME}_1

CONTAINER_RUNS_TEST=$(docker ps -q -f name=$COMPOSE_CONTAINER_NAME)
if [ -z "$CONTAINER_RUNS_TEST" ]; then
Expand Down

0 comments on commit 48c4a15

Please sign in to comment.