mirror of
https://github.com/rocky-linux/rocky-tools.git
synced 2024-11-22 05:01:25 +00:00
Fix syntax error in sed regexes.
This commit is contained in:
parent
f28f6daa0e
commit
210d1fc998
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user