@@ -27,7 +27,7 @@ Options:
2727
2828Examples:
2929
30- $0 -b release-1.3 --clean
30+ $0 -b release-1.4 --clean
3131
3232EOF
3333}
@@ -297,16 +297,24 @@ num_plugins+=(${#adoc1[@]})
297297
298298rm -f " ${0/ .sh/ .adoc2} "
299299sorted=(); while IFS= read -rd ' ' key; do sorted+=( " $key " ); done < <( printf ' %s\0' " ${! adoc2[@]} " | sort -z)
300- for key in " ${sorted[@]} " ; do
301- echo -e " ${adoc2[$key]} " >> " ${0/ .sh/ .ref-rh-tech-preview-plugins} " ;
302- echo -e " ${csv[$key]} " >> " ${0/ .sh/ .csv} " ; done
300+ # shellcheck disable=SC2128
301+ if [[ $sorted ]] ; then
302+ for key in " ${sorted[@]} " ; do
303+ echo -e " ${adoc2[$key]} " >> " ${0/ .sh/ .ref-rh-tech-preview-plugins} " ;
304+ echo -e " ${csv[$key]} " >> " ${0/ .sh/ .csv} "
305+ done
306+ fi
303307num_plugins+=(${# adoc2[@]} )
304308
305309rm -f " ${0/ .sh/ .adoc3} "
306310sorted=(); while IFS= read -rd ' ' key; do sorted+=( " $key " ); done < <( printf ' %s\0' " ${! adoc3[@]} " | sort -z)
307- for key in " ${sorted[@]} " ; do
308- echo -e " ${adoc3[$key]} " >> " ${0/ .sh/ .ref-community-plugins} " ;
309- echo -e " ${csv[$key]} " >> " ${0/ .sh/ .csv} " ; done
311+ # shellcheck disable=SC2128
312+ if [[ $sorted ]] ; then
313+ for key in " ${sorted[@]} " ; do
314+ echo -e " ${adoc3[$key]} " >> " ${0/ .sh/ .ref-community-plugins} " ;
315+ echo -e " ${csv[$key]} " >> " ${0/ .sh/ .csv} "
316+ done
317+ fi
310318num_plugins+=(${# adoc3[@]} )
311319
312320# merge the content from the three .adocX files into the .template.adoc file, replacing the TABLE_CONTENT markers
0 commit comments