- IMAGES_LIST=$(docker images $REGISTRY/$REPO/$NAME-$FLAVOUR --format '{{.Tag}}')
- VER_NUM=$(echo "$IMAGES_LIST" | wc -l)
+ VERSION_LIST=$(docker images $REGISTRY/$REPO/$NAME-$FLAVOUR --format '{{.Tag}}')
+ VER_NUM=$(echo "$VERSION_LIST" | wc -l)
if [ $VER_NUM -gt 1 ]; then
echo "ERROR: more than one xds image found, please set explicitly the image to use !"
echo "List of found images:"
if [ $VER_NUM -gt 1 ]; then
echo "ERROR: more than one xds image found, please set explicitly the image to use !"
echo "List of found images:"
exit 1
elif [ $VER_NUM -lt 1 ]; then
echo "ERROR: cannot automatically retrieve image tag for $REGISTRY/$REPO/$NAME-$FLAVOUR"
exit 1
fi
exit 1
elif [ $VER_NUM -lt 1 ]; then
echo "ERROR: cannot automatically retrieve image tag for $REGISTRY/$REPO/$NAME-$FLAVOUR"
exit 1
fi