Fix bug in anyStringInList

pull/218/head
Michele Locati 2020-12-16 13:13:35 +01:00
parent 51d1b828a8
commit 0f273c531f
No known key found for this signature in database
GPG Key ID: 98B7CE2E7234E28B
1 changed files with 2 additions and 2 deletions

View File

@ -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