[util.sh] set branch only for rootfs

This commit is contained in:
Philip Müller 2020-02-25 10:47:04 +01:00
parent 465bc8937d
commit 0ca7be157f

View file

@ -196,7 +196,7 @@ get_branch(){
# $1: chroot
# $2: branch
set_branch(){
if [[ $1 == "rootfs" ]]; then
if [[ $1 =~ "rootfs" ]]; then
info "Setting mirrorlist branch: %s" "$2"
sed -e "s|/stable|/$2|g" -i "$1/etc/pacman.d/mirrorlist"
fi