Skip to content

Commit

Permalink
[FAB-16844] Correct BYFN CC name
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mbwhite committed Dec 13, 2019
1 parent 66ac1ad commit d848633
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions first-network/byfn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function askProceed() {
# Obtain CONTAINER_IDS and remove them
# TODO Might want to make this optional - could clear other containers
function clearContainers() {
CONTAINER_IDS=$(docker ps -a | awk '($2 ~ /dev-peer.*.mycc.*/) {print $1}')
CONTAINER_IDS=$(docker ps -a | awk '($2 ~ /dev-peer.*/) {print $1}')
if [ -z "$CONTAINER_IDS" -o "$CONTAINER_IDS" == " " ]; then
echo "---- No containers available for deletion ----"
else
Expand All @@ -102,7 +102,7 @@ function clearContainers() {
# specifically the following images are often left behind:
# TODO list generated image naming patterns
function removeUnwantedImages() {
DOCKER_IMAGE_IDS=$(docker images | awk '($1 ~ /dev-peer.*.mycc.*/) {print $3}')
DOCKER_IMAGE_IDS=$(docker images | awk '($1 ~ /dev-peer.*/) {print $3}')
if [ -z "$DOCKER_IMAGE_IDS" -o "$DOCKER_IMAGE_IDS" == " " ]; then
echo "---- No images available for deletion ----"
else
Expand Down

0 comments on commit d848633

Please sign in to comment.