mirror of
https://gitlab.manjaro.org/applications/manjaro-architect
synced 2024-11-08 01:10:26 +00:00
Fix modification of pacman-mirrors.conf on install target
This commit is contained in:
parent
7c45b007e4
commit
6cdb213dc9
4
aif
4
aif
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user