Compare commits

...

2 commits

Author SHA1 Message Date
Tobias Powalowski
6589c8eed5 remove head, not needed with rg 2024-07-30 15:51:58 +02:00
Tobias Powalowski
321e70479a update comment 2024-07-30 15:49:39 +02:00

View file

@ -42,10 +42,9 @@ _select_mirror() {
_SYNC_URL=$(cat "${_ANSWER}") _SYNC_URL=$(cat "${_ANSWER}")
else else
# Form the full URL for our mirror by grepping for the server name in # Form the full URL for our mirror by grepping for the server name in
# our mirrorlist and pulling the full URL out. Substitute 'core' in # our mirrorlist and pulling the full URL out and ensure that if it
# for the repository name, and ensure that if it was listed twice we # was listed twice we only return one line for the mirror.
# only return one line for the mirror. _SYNC_URL=$(rg -m1 -o "${_SERVER}.*" "${_PACMAN_MIRROR}")
_SYNC_URL=$(rg -o "${_SERVER}.*" "${_PACMAN_MIRROR}" | head -n1)
fi fi
echo "Using mirror: ${_SYNC_URL}" >"${_LOG}" echo "Using mirror: ${_SYNC_URL}" >"${_LOG}"
# comment already existing entries # comment already existing entries