@@ -62,7 +62,7 @@ function get_variants() {
6262
6363 arch=$( get_arch)
6464 variantsfilter=(" $@ " )
65- IFS=' ' read -ra availablevariants <<< " $(grep " ^${arch} " " ${dir} /architectures" | sed -E 's/'" ${arch} " '[[:space:]]*//' | sed -E 's/,/ /g')"
65+ IFS=' ' read -ra availablevariants <<< " $(grep " ^${arch} " " ${dir} /architectures" | sed -E 's/'" ${arch} " '[[:space:]]*//' | sed -E 's/,/ /g')"
6666
6767 if [ ${# variantsfilter[@]} -gt 0 ]; then
6868 for variant1 in " ${availablevariants[@]} " ; do
@@ -100,16 +100,16 @@ function get_supported_arches() {
100100 shift
101101
102102 # Get default supported arches
103- lines=$( grep " ${variant} " " $( dirname " ${version} " ) " /architectures 2> /dev/null | cut -d' ' -f1)
103+ lines=$( grep " ${variant} " " $( dirname " ${version} " ) " /architectures 2> /dev/null | cut -d' ' -f1)
104104
105105 # Get version specific supported architectures if there is specialized information
106106 if [ -a " ${version} " /architectures ]; then
107- lines=$( grep " ${variant} " " ${version} " /architectures 2> /dev/null | cut -d' ' -f1)
107+ lines=$( grep " ${variant} " " ${version} " /architectures 2> /dev/null | cut -d' ' -f1)
108108 fi
109109
110110 while IFS=' ' read -r line; do
111111 arches+=(" ${line} " )
112- done <<< " ${lines}"
112+ done <<< " ${lines}"
113113
114114 echo " ${arches[@]} "
115115}
@@ -149,13 +149,13 @@ function get_versions() {
149149 local default_variant
150150 default_variant=$( get_config " ./" " default_variant" )
151151 if [ ${# dirs[@]} -eq 0 ]; then
152- IFS=' ' read -ra dirs <<< " $(echo " ${prefix%/ } /" */)"
152+ IFS=' ' read -ra dirs <<< " $(echo " ${prefix%/ } /" */)"
153153 fi
154154
155155 for dir in " ${dirs[@]} " ; do
156156 if [ -a " ${dir} /config" ]; then
157157 local subdirs
158- IFS=' ' read -ra subdirs <<< " $(get_versions " ${dir# ./ } " )"
158+ IFS=' ' read -ra subdirs <<< " $(get_versions " ${dir# ./ } " )"
159159 for subdir in " ${subdirs[@]} " ; do
160160 versions+=(" ${subdir} " )
161161 done
@@ -174,7 +174,7 @@ function get_fork_name() {
174174 version=$1
175175 shift
176176
177- IFS=' /' read -ra versionparts <<< " ${version}"
177+ IFS=' /' read -ra versionparts <<< " ${version}"
178178 if [ ${# versionparts[@]} -gt 1 ]; then
179179 echo " ${versionparts[0]} "
180180 fi
@@ -260,7 +260,7 @@ function get_tag() {
260260 fi
261261
262262 local tagparts
263- IFS=' ' read -ra tagparts <<< " $(get_fork_name " ${version} " ) ${tagversion} "
263+ IFS=' ' read -ra tagparts <<< " $(get_fork_name " ${version} " ) ${tagversion} "
264264 IFS=' -'
265265 echo " ${tagparts[*]} "
266266 unset IFS
@@ -278,11 +278,11 @@ function sort_versions() {
278278
279279 while IFS=' ' read -r line; do
280280 sorted+=(" ${line} " )
281- done <<< " $(echo " ${lines} " | grep " ^[0-9]" | sort -r)"
281+ done <<< " $(echo " ${lines} " | grep " ^[0-9]" | sort -r)"
282282
283283 while IFS=' ' read -r line; do
284284 sorted+=(" ${line} " )
285- done <<< " $(echo " ${lines} " | grep -v " ^[0-9]" | sort -r)"
285+ done <<< " $(echo " ${lines} " | grep -v " ^[0-9]" | sort -r)"
286286
287287 echo " ${sorted[@]} "
288288}
@@ -312,7 +312,7 @@ function images_updated() {
312312
313313 commit_range=" $( commit_range " $@ " ) "
314314
315- IFS=' ' read -ra versions <<< " $(
315+ IFS=' ' read -ra versions <<< " $(
316316 IFS=','
317317 get_versions
318318 )"
0 commit comments