X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=auth%2Fdocker%2Fdclean.sh;fp=auth%2Fdocker%2Fdclean.sh;h=f855067424bc84485d0d258d6114a7af32143f8f;hb=235dd9ad5309cb8c348e15c66fb3884d39dbb107;hp=d83a13298b6675555d384f83313aa5846543c6c2;hpb=1e3be601c78fa851333e51c6498713d1c412bd62;p=aaf%2Fauthz.git diff --git a/auth/docker/dclean.sh b/auth/docker/dclean.sh index d83a1329..f8550674 100644 --- a/auth/docker/dclean.sh +++ b/auth/docker/dclean.sh @@ -8,14 +8,10 @@ else AAF_COMPONENTS="$@" fi -docker image rm $ORG/$PROJECT/aaf_agent:${VERSION} -docker image rm $ORG/$PROJECT/aaf_config:${VERSION} -docker image rm $ORG/$PROJECT/aaf_core:${VERSION} - echo "Y" | docker container prune for AAF_COMPONENT in ${AAF_COMPONENTS}; do docker image rm $ORG/$PROJECT/aaf_$AAF_COMPONENT:${VERSION} - if [ "$PREFIX" = "" ]; then + if [ ! "$PREFIX" = "" ]; then docker image rm $DOCKER_REPOSITORY/$ORG/$PROJECT/aaf_$AAF_COMPONENT:${VERSION} docker image rm $DOCKER_REPOSITORY/$ORG/$PROJECT/aaf_$AAF_COMPONENT:latest fi