use grep -q when checking for docker images

This commit is contained in:
Jose Diaz-Gonzalez
2016-05-08 03:11:24 -04:00
parent dbbae006e8
commit f2b66e8142

View File

@@ -6,11 +6,11 @@ if ! docker images | grep -e "^$PLUGIN_IMAGE " | grep -q "$PLUGIN_IMAGE_VERSION"
docker pull "$PLUGIN_IMAGE:$PLUGIN_IMAGE_VERSION" docker pull "$PLUGIN_IMAGE:$PLUGIN_IMAGE_VERSION"
fi fi
if ! docker images | grep -e "^svendowideit/ambassador "; then if ! docker images | grep -q -e "^svendowideit/ambassador "; then
docker pull svendowideit/ambassador:latest docker pull svendowideit/ambassador:latest
fi fi
if ! docker images | grep -e "^dokkupaas/wait "; then if ! docker images | grep -q -e "^dokkupaas/wait "; then
docker pull dokkupaas/wait:latest docker pull dokkupaas/wait:latest
fi fi