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

Use lower case extension names

This commit is contained in:
Michele Locati 2020-02-29 18:44:31 +01:00
parent 119c431aef
commit ab6746373b
No known key found for this signature in database
GPG key ID: 98B7CE2E7234E28B

View file

@ -25,7 +25,7 @@ for XML_LINE in $XML; do
case "$XML_LINE" in
\<item\ *)
URL="$(printf '%s' "$XML_LINE" | sed -r 's#^.+ rdf:about\s*=\s*"##' | sed -r 's#".*$##')"
EXTENSION="$(printf '%s' "$URL" | sed -r 's#^.*[?&]package=##' | sed -r 's#&.*$##')"
EXTENSION="$(printf '%s' "$URL" | sed -r 's#^.*[?&]package=##' | sed -r 's#&.*$##' | tr '[:upper:]' '[:lower:]')"
if test -n "$EXTENSION" && ! stringInList "$EXTENSION" "$EXTENSIONS"; then
EXTENSIONS="$EXTENSIONS $EXTENSION"
NUM_EXTENSIONS=$((NUM_EXTENSIONS + 1))