mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
replace with _PACMAN_MIRROR
This commit is contained in:
parent
07e92da841
commit
df6fe865d1
1 changed files with 2 additions and 2 deletions
|
@ -49,9 +49,9 @@ _select_mirror() {
|
||||||
fi
|
fi
|
||||||
echo "Using mirror: ${_SYNC_URL}" >"${_LOG}"
|
echo "Using mirror: ${_SYNC_URL}" >"${_LOG}"
|
||||||
# comment already existing entries
|
# comment already existing entries
|
||||||
sed -i -e 's|^Server|#Server|g' /etc/pacman.d/mirrorlist
|
sed -i -e 's|^Server|#Server|g' "${_PACMAN_MIRROR}"
|
||||||
#shellcheck disable=SC2027,SC2086
|
#shellcheck disable=SC2027,SC2086
|
||||||
echo "Server = "${_SYNC_URL}"" >> /etc/pacman.d/mirrorlist
|
echo "Server = "${_SYNC_URL}"" >> "${_PACMAN_MIRROR}"
|
||||||
if ! pacman -Sy &>${_LOG}; then
|
if ! pacman -Sy &>${_LOG}; then
|
||||||
_dialog --title " ERROR " --no-mouse --infobox "Your selected mirror is not working correctly, please configure again!" 3 75
|
_dialog --title " ERROR " --no-mouse --infobox "Your selected mirror is not working correctly, please configure again!" 3 75
|
||||||
sleep 3
|
sleep 3
|
||||||
|
|
Loading…
Reference in a new issue