Fix modification of pacman-mirrors.conf on install target

This commit is contained in:
Chrysostomus 2017-01-17 17:47:00 +02:00
parent 7c45b007e4
commit 6cdb213dc9

4
aif
View File

@ -1627,9 +1627,7 @@ install_base() {
if [[ -e ${BRANCH} ]]; then if [[ -e ${BRANCH} ]]; then
sed -i "/Branch =/c\Branch = $(cat ${BRANCH})/" ${MOUNTPOINT}/etc/pacman-mirrors.conf sed -i "/Branch =/c\Branch = $(cat ${BRANCH})/" ${MOUNTPOINT}/etc/pacman-mirrors.conf
else else
sed -i "/Branch =/c\Branch = $(grep "Branch =" /etc/pacman-mirrors.conf sed -i "/Branch =/c$(grep "Branch =" /etc/pacman-mirrors.conf)" ${MOUNTPOINT}/etc/pacman-mirrors.conf
)/" ${MOUNTPOINT}/etc/pacman-mirrors.conf
fi fi
fi fi
fi fi