Skip to content

Commit

Permalink
For some reason, container names now seem to allow _ and - characters…
Browse files Browse the repository at this point in the history
… in them, which totally broke this script
  • Loading branch information
atamon committed May 14, 2018
1 parent 5f266d3 commit 400748e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-contract
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fi

function wait_for_contract {
sleep 3
compose_name=$(echo "$1" | sed 's/[^A-Za-z0-9]//g')
compose_name=$(echo "$1" | sed 's/[^A-Za-z0-9_-]//g')
# Count the number of failed containers
# NOTE: Assumes no other build contract process is running at the same time
filters="-f label=com.yolean.build-contract -f name=$compose_name"
Expand Down

0 comments on commit 400748e

Please sign in to comment.