contrib: fix var unbound issue on 'mt' with older bash

This commit is contained in:
Xavier Delaruelle
2019-07-02 10:40:55 +02:00
parent 62098ccf09
commit d0fc0be445

View File

@@ -76,7 +76,8 @@ if [ $# -gt 0 ]; then
if [ -e $i ]; then
fname=${i##*/}
# build list of unique file names
if [[ ! " ${testfnames[*]} " =~ " $fname " ]]; then
if [ ${#testfnames[@]} -eq 0 ]\
|| [[ ! " ${testfnames[*]} " =~ " $fname " ]]; then
testfnames+=($fname)
fi
fi