summaryrefslogtreecommitdiffstats
path: root/compose
diff options
context:
space:
mode:
Diffstat (limited to 'compose')
-rwxr-xr-xcompose/export-ports.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/compose/export-ports.sh b/compose/export-ports.sh
index aa97f493..6eaaedb8 100755
--- a/compose/export-ports.sh
+++ b/compose/export-ports.sh
@@ -17,11 +17,11 @@
# SPDX-License-Identifier: Apache-2.0
# ============LICENSE_END=========================================================
-if $(docker images | grep -q "onap\/policy-api")
+if $(docker images | grep -q "^onap\/policy-api")
then
export CONTAINER_LOCATION=$(
docker images |
- grep onap/policy-api |
+ grep "^onap/policy-api" |
head -1 |
sed 's/onap\/policy-api.*$//'
)