File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,12 @@ function get_arches() {
102
102
eval " declare -A sums=" ${archsums#* =} ;
103
103
for arch in ${! sums[@]} ;
104
104
do
105
- if [ " ${arch} " != " version" ]; then
105
+ if [ " ${arch} " == " version" ]; then
106
+ continue ;
107
+ fi
108
+ # Arch is supported only if the shasum is not empty !
109
+ shasum=$( sarray=$1 [${arch} ]; eval esum=\$ {$sarray }; echo ${esum} ) ;
110
+ if [ ! -z " ${shasum} " ]; then
106
111
echo " ${arch} "
107
112
fi
108
113
done
@@ -299,7 +304,10 @@ function get_sums_for_build_arch() {
299
304
# If there are multiple builds for a single version, then pick the latest one.
300
305
shasums_url=$( cat ${shasum_file} | grep " checksum_link" | head -1 | awk -F' "' ' { print $4 }' ) ;
301
306
shasum=$( curl -Ls ${shasums_url} | sed -e ' s/<[^>]*>//g' | awk ' { print $1 }' ) ;
302
- printf " \t[%s]=\" %s\" \n" ${gsba_arch} ${shasum} >> ${ofile}
307
+ # Only print the entry if the shasum is not empty
308
+ if [ ! -z " ${shasum} " ]; then
309
+ printf " \t[%s]=\" %s\" \n" ${gsba_arch} ${shasum} >> ${ofile}
310
+ fi
303
311
fi
304
312
rm -f ${shasum_file}
305
313
}
You can’t perform that action at this time.
0 commit comments