aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnders Roxell <anders.roxell@enea.com>2016-12-13 18:35:18 +0100
committerAnders Roxell <anders.roxell@enea.com>2017-01-16 09:36:34 +0100
commitba2b4510c4c90e75927d90c976ba2afec97f0228 (patch)
tree1df3cbb3ddcd06f43a9a37e505fcb3f0e77f0337
parent7a4538e62aa98b42d26177e81f8d43c891fbe0d2 (diff)
build/Makefile: deepclean: make grep more strict
Check if the docker image is named only 'ubuntu' and tag 14.04 JIRA: FUEL-245 Change-Id: I4dc58a295925cc64a1d5c52393e1c172d42f8a6e Signed-off-by: Anders Roxell <anders.roxell@enea.com>
-rw-r--r--build/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/Makefile b/build/Makefile
index d4b981a9d..6ce6dbd9c 100644
--- a/build/Makefile
+++ b/build/Makefile
@@ -184,7 +184,7 @@ deepclean: clean clean-cache
docker rmi opnfv.org/ubuntu-builder:14.04 &>/dev/null || exit 0
docker rmi opnfv.org/ubuntu-builder:latest &>/dev/null || exit 0
docker rmi ubuntu:14.04 &>/dev/null || exit 0
- @if docker images | grep -q "ubuntu *14.04"; then \
+ @if docker images | grep -q "^ubuntu *14.04"; then \
echo "Error: ubuntu:14.04 still present!"; \
exit 1; \
fi