update pacsetup

This commit is contained in:
Tobias Powalowski 2024-06-27 09:54:40 +02:00
parent b527fef08d
commit 807e91294c

View file

@ -29,7 +29,7 @@ _select_mirror() {
fi
fi
# This regex doesn't honor commenting
_MIRRORS=$(rg -o '(https)://[^/]*' "${_PACMAN_MIRROR}" | sd '$' ' _')
_MIRRORS=$(rg -o '(https://[^/]*)' -r '$1 _')
[[ -z ${_MIRRORS} ]] && _MIRRORS=$(rg -o '(http)://[^/]*' "${_PACMAN_MIRROR}" | sd '$' ' _')
#shellcheck disable=SC2086
_dialog --cancel-label "${_LABEL}" --title " Package Mirror " --menu "" 13 55 7 \