fix testing detection

This commit is contained in:
Tobias Powalowski 2023-05-23 21:44:40 +02:00
parent d6c19451b7
commit e5c42bc2aa

View file

@ -50,7 +50,7 @@ _select_mirror() {
}
_enable_testing() {
if ! grep -q "^\[testing\]" /etc/pacman.conf; then
if ! grep -q "^\[.*testing\]" /etc/pacman.conf; then
_DOTESTING=""
_dialog --defaultno --yesno "Do you want to enable [core-testing]\nand [extra-testing] repositories?\n\nOnly enable this if you need latest\navailable packages for testing purposes!" 9 50 && _DOTESTING=1
if [[ -n "${_DOTESTING}" ]]; then