Match multiple keys in update.sh since we have 2+ here

This commit is contained in:
Tianon Gravi 2014-08-22 10:06:40 -06:00
parent 4c98e81721
commit e98835b454

View File

@ -33,7 +33,7 @@ for version in "${versions[@]}"; do
set -x
sed -ri '
s/^(ENV PHP_VERSION) .*/\1 '"$fullVersion"'/;
s/^(RUN gpg .* --recv-keys) [0-9a-fA-F]*$/\1 '"$gpgKey"'/
s/^(RUN gpg .* --recv-keys) [0-9a-fA-F ]*$/\1 '"$gpgKey"'/
' "$version/Dockerfile"
awk -vf2="$insert" '/^\t&& make install \\$/{print f2;next}1' "$version/Dockerfile" "Dockerfile-apache-tail" > "$version/apache/Dockerfile"