Fix syntax error in sed regexes.

This commit is contained in:
Peter Ajamian 2021-11-24 04:48:51 +13:00
parent f28f6daa0e
commit 210d1fc998

View File

@ -763,9 +763,9 @@ package_swaps() {
# Rename the stream repos with a prefix and fix the baseurl. # Rename the stream repos with a prefix and fix the baseurl.
sed -i \ sed -i \
-e 's/^\[/['"$stream_prefix"'/' \ -e 's/^\[/['"$stream_prefix"'/' \
-e 's|^mirrorlist=|#mirrorlist=|g' \ -e 's|^mirrorlist=|#mirrorlist=|' \
-e 's|^#baseurl=http://mirror.centos.org/$contentdir/$stream/|baseurl=|http://mirror.centos.org/centos/8-stream/' \ -e 's|^#baseurl=http://mirror.centos.org/$contentdir/$stream/|baseurl=http://mirror.centos.org/centos/8-stream/|' \
-e 's|^baseurl=http://vault.centos.org/$contentdir/$stream/|baseurl=|https://vault.centos.org/centos/8-stream/' \ -e 's|^baseurl=http://vault.centos.org/$contentdir/$stream/|baseurl=https://vault.centos.org/centos/8-stream/|' \
"${repos_files[@]}" "${repos_files[@]}"
fi fi