summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-10-19 14:47:21 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-10-19 14:47:21 +0200
commit09cffe9749d9d484ec35ebe38106b4c73a971a06 (patch)
tree5fcd948029717da472fc12cf0af21ea242d9b463
parente28d00348c64759dcfc3cb223b2af60d1721630b (diff)
Fixed auto detection of version
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
-rwxr-xr-xscripts/xds-docker-create-container.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/xds-docker-create-container.sh b/scripts/xds-docker-create-container.sh
index f493dde..06d1edc 100755
--- a/scripts/xds-docker-create-container.sh
+++ b/scripts/xds-docker-create-container.sh
@@ -93,24 +93,24 @@ done
# Dynamically retrieve image name
if [ "$IMAGE" = "" ]; then
- 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:"
- echo "$IMAGES_LIST"
+ echo "$VERSION_LIST"
exit 1
elif [ $VER_NUM -lt 1 ]; then
echo "ERROR: cannot automatically retrieve image tag for $REGISTRY/$REPO/$NAME-$FLAVOUR"
exit 1
fi
- if [ "$IMAGES_LIST" = "" ]; then
+ if [ "$VERSION_LIST" = "" ]; then
echo "ERROR: cannot automatically retrieve image tag for $REGISTRY/$REPO/$NAME-$FLAVOUR"
usage
exit 1
fi
- IMAGE=$REGISTRY/$REPO/$NAME-$FLAVOUR:$VERSION
+ IMAGE=$REGISTRY/$REPO/$NAME-$FLAVOUR:$VERSION_LIST
fi
USER=$(id -un)