Skip to content
Snippets Groups Projects
Commit 1a418aa2 authored by Toke Eskildsen's avatar Toke Eskildsen
Browse files

Fixes #17 - the alternatives resolver required images to start with 4 digits due to legacy reasons

parent 1527ef1b
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment