precise check on archboot repository

This commit is contained in:
Tobias Powalowski 2022-06-12 19:30:09 +02:00
parent 0237778505
commit b873501d5a

View file

@ -98,7 +98,7 @@ _create_pacman_conf() {
if [[ -z "${_INSTALL_SOURCE}" ]]; then
echo "Use default pacman.conf ..."
[[ "${2}" == "use_container_config" ]] && _PACMAN_CONF="${1}${_PACMAN_CONF}"
if ! grep -qw archboot "${_PACMAN_CONF}"; then
if ! grep -qw "\[archboot\]" "${_PACMAN_CONF}"; then
echo "Adding archboot repository to ${_PACMAN_CONF} ..."
echo "[archboot]" >> "${_PACMAN_CONF}"
echo "Server = https://pkgbuild.com/~tpowa/archboot-repository" >> "${_PACMAN_CONF}"