Skip to content

Commit d848633

Browse files
committed
[FAB-16844] Correct BYFN CC name
Correct chaincode name regexp in byfn.sh so it is not restricted to one named chaincode. Signed-off-by: Matthew B White <whitemat@uk.ibm.com>
1 parent 66ac1ad commit d848633

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

first-network/byfn.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function askProceed() {
9090
# Obtain CONTAINER_IDS and remove them
9191
# TODO Might want to make this optional - could clear other containers
9292
function clearContainers() {
93-
CONTAINER_IDS=$(docker ps -a | awk '($2 ~ /dev-peer.*.mycc.*/) {print $1}')
93+
CONTAINER_IDS=$(docker ps -a | awk '($2 ~ /dev-peer.*/) {print $1}')
9494
if [ -z "$CONTAINER_IDS" -o "$CONTAINER_IDS" == " " ]; then
9595
echo "---- No containers available for deletion ----"
9696
else
@@ -102,7 +102,7 @@ function clearContainers() {
102102
# specifically the following images are often left behind:
103103
# TODO list generated image naming patterns
104104
function removeUnwantedImages() {
105-
DOCKER_IMAGE_IDS=$(docker images | awk '($1 ~ /dev-peer.*.mycc.*/) {print $3}')
105+
DOCKER_IMAGE_IDS=$(docker images | awk '($1 ~ /dev-peer.*/) {print $3}')
106106
if [ -z "$DOCKER_IMAGE_IDS" -o "$DOCKER_IMAGE_IDS" == " " ]; then
107107
echo "---- No images available for deletion ----"
108108
else

0 commit comments

Comments
 (0)