use grep -q when checking for docker images

This commit is contained in:
Jose Diaz-Gonzalez
2016-05-08 03:02:48 -04:00
parent 424a725c8d
commit 857c9d4d18

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"
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