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
|
# 0 (true): at least one of the items in $1 is in $2
|
||||||
# 1 (false): otherwise
|
# 1 (false): otherwise
|
||||||
anyStringInList() {
|
anyStringInList() {
|
||||||
for anyStringInList in $1; do
|
for anyStringInList_item in $1; do
|
||||||
if stringInList "$1" "$2"; then
|
if stringInList "$anyStringInList_item" "$2"; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue