From f2b66e8142048903b2e8ec4f257603c940251ae7 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 8 May 2016 03:11:24 -0400 Subject: [PATCH] use grep -q when checking for docker images --- install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install b/install index 170e018..c59ac06 100755 --- a/install +++ b/install @@ -6,11 +6,11 @@ if ! docker images | grep -e "^$PLUGIN_IMAGE " | grep -q "$PLUGIN_IMAGE_VERSION" docker pull "$PLUGIN_IMAGE:$PLUGIN_IMAGE_VERSION" fi -if ! docker images | grep -e "^svendowideit/ambassador "; then +if ! docker images | grep -q -e "^svendowideit/ambassador "; then docker pull svendowideit/ambassador:latest fi -if ! docker images | grep -e "^dokkupaas/wait "; then +if ! docker images | grep -q -e "^dokkupaas/wait "; then docker pull dokkupaas/wait:latest fi