From 817720d7984a078ff4addcb252cbc4f2780ce033 Mon Sep 17 00:00:00 2001 From: udeved Date: Mon, 5 Jun 2017 20:25:32 +0200 Subject: [PATCH] util-chroot: add set_branch() --- lib/util-chroot.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/util-chroot.sh b/lib/util-chroot.sh index e6903bc..44fc003 100644 --- a/lib/util-chroot.sh +++ b/lib/util-chroot.sh @@ -45,6 +45,11 @@ subvolume_delete_recursive() { return 0 } +set_branch(){ + local mnt="$1" branch="$2" + sed -e "s|^.*Branch = .*|Branch = $branch|" -i $mnt/etc/pacman-mirrors.conf +} + set_locale(){ local mnt="$1" if [[ ! -f "$mnt/etc/locale.gen.bak" ]] && [[ ! -f "$mnt/etc/locale.conf.bak" ]];then