aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-10-19 14:39:13 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-10-19 14:39:13 +0200
commite28d00348c64759dcfc3cb223b2af60d1721630b (patch)
tree23e9520a06504ef0f6ba8d11d2f72c0f5c33d9f9
parent7d6ef7df98e6d3e3a7e53b6791d369988e106e1f (diff)
Fix docker images detection on Redhat like distro.
-rwxr-xr-xscripts/xds-docker-create-container.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/xds-docker-create-container.sh b/scripts/xds-docker-create-container.sh
index 644df35..f493dde 100755
--- a/scripts/xds-docker-create-container.sh
+++ b/scripts/xds-docker-create-container.sh
@@ -93,10 +93,11 @@ done
# Dynamically retrieve image name
if [ "$IMAGE" = "" ]; then
- IMAGES_LIST=$(docker images $REGISTRY/$REPO/$NAME-$FLAVOUR:* --format '{{.Tag}}')
+ IMAGES_LIST=$(docker images $REGISTRY/$REPO/$NAME-$FLAVOUR --format '{{.Tag}}')
VER_NUM=$(echo "$IMAGES_LIST" | wc -l)
if [ $VER_NUM -gt 1 ]; then
- echo "ERROR: more than one xds image found, please set explicitly the image to use ! List of found images:"
+ echo "ERROR: more than one xds image found, please set explicitly the image to use !"
+ echo "List of found images:"
echo "$IMAGES_LIST"
exit 1
elif [ $VER_NUM -lt 1 ]; then