From 1a418aa24076377e17b9a66cc9f8f9747c39a413 Mon Sep 17 00:00:00 2001 From: Toke Eskildsen <te@ekot.dk> Date: Wed, 4 Dec 2013 13:28:55 +0100 Subject: [PATCH] Fixes #17 - the alternatives resolver required images to start with 4 digits due to legacy reasons --- quack.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/quack.sh b/quack.sh index 77913c4..3a4316f 100755 --- a/quack.sh +++ b/quack.sh @@ -540,8 +540,9 @@ function resolveAlternatives() { local SRC_FOLDER=$1 local IMAGE=$2 local FULL="${SRC_FOLDER}/${IMAGE}" - local ID=`echo $IMAGE | grep -o "[0-9][0-9][0-9][0-9]-.*"` - +# local ID=`echo $IMAGE | grep -o "[0-9][0-9][0-9][0-9]-.*"` + local ID="${IMAGE%.*}" + if [ "." == ".$ID" ]; then echo " Unable to extract ID for \"$IMAGE\". No alternatives lookup" return -- GitLab