Fix modification of pacman-mirrors.conf on install target

merge-requests/273/head
Chrysostomus 8 years ago
parent 7c45b007e4
commit 6cdb213dc9

4
aif

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

Loading…
Cancel
Save