Tolerate missed spaces in the download list

This commit is contained in:
Michael Raskin 2016-08-11 09:49:08 +02:00
parent b189d34a1b
commit 45a61dc067

View file

@ -33,15 +33,18 @@ while read line; do
*_MD5SUM\ :=*)
read tbline;
line=${line##* };
line=${line##*:=};
if [ "${tbline#*VERSION_MICRO}" != "$tbline" ]; then
verline=${tbline##* };
read tbline;
tbline=${tbline##* };
tbline=${tbline##*:=};
md5=$line
name=$tbline;
name="${name/\$([A-Z]*_VERSION_MICRO)/$verline}"
else
tbline=${tbline##* };
tbline=${tbline##*:=};
md5=$line
name=$tbline;
fi
@ -50,6 +53,7 @@ while read line; do
;;
*_TARBALL\ :=*)
line=${line##* };
line=${line##*:=};
line="${line#,}"
md5=${line:0:32};
name=${line:33};