1
0
Fork 0
mirror of https://github.com/mlocati/docker-php-extension-installer synced 2025-05-09 00:22:40 +00:00

Fix bug in anyStringInList

This commit is contained in:
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

View file

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