mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
add additional testing check
This commit is contained in:
parent
9b8922d54b
commit
e8122a099e
1 changed files with 7 additions and 5 deletions
|
@ -63,12 +63,14 @@ select_mirror() {
|
|||
# dotesting()
|
||||
# enable testing repository on network install
|
||||
dotesting() {
|
||||
if ! grep -q "^\[testing\]" /etc/pacman.conf; then
|
||||
DIALOG --defaultno --yesno "Do you want to enable [testing]\nand [community-testing] repositories?\n\nOnly enable this if you need latest\navailable packages for testing purposes!" 9 50 && DOTESTING="yes"
|
||||
if [[ "${DOTESTING}" == "yes" ]]; then
|
||||
#shellcheck disable=SC2129
|
||||
! grep -q "^\[testing\]" /etc/pacman.conf && sed -i -e "s:#\[testing\]:\[testing\]\nInclude = /etc/pacman.d/mirrorlist:g" /etc/pacman.conf
|
||||
! grep -q "^\[community-testing\]" /etc/pacman.conf && sed -i -e "s:#\[community-testing\]:\[community-testing\]\nInclude = /etc/pacman.d/mirrorlist:g" /etc/pacman.conf
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
# check for updating complete environment with packages
|
||||
|
|
Loading…
Reference in a new issue