Fix bug in anyStringInList
parent
51d1b828a8
commit
0f273c531f
|
@ -1869,8 +1869,8 @@ stringInList() {
|
|||
# 0 (true): at least one of the items in $1 is in $2
|
||||
# 1 (false): otherwise
|
||||
anyStringInList() {
|
||||
for anyStringInList in $1; do
|
||||
if stringInList "$1" "$2"; then
|
||||
for anyStringInList_item in $1; do
|
||||
if stringInList "$anyStringInList_item" "$2"; then
|
||||
return 0
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue