From 400748e666c261bd1c0b9dd7137db90b1f66ec7f Mon Sep 17 00:00:00 2001 From: Anton Lindgren Date: Mon, 14 May 2018 14:10:22 +0200 Subject: [PATCH] For some reason, container names now seem to allow _ and - characters in them, which totally broke this script --- build-contract | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-contract b/build-contract index acbffb1..bceb3b3 100755 --- a/build-contract +++ b/build-contract @@ -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"