mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 03:20:38 +02:00
remove head, not needed with rg
This commit is contained in:
parent
321e70479a
commit
6589c8eed5
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ _select_mirror() {
|
|||
# Form the full URL for our mirror by grepping for the server name in
|
||||
# our mirrorlist and pulling the full URL out and ensure that if it
|
||||
# was listed twice we only return one line for the mirror.
|
||||
_SYNC_URL=$(rg -o "${_SERVER}.*" "${_PACMAN_MIRROR}" | head -n1)
|
||||
_SYNC_URL=$(rg -m1 -o "${_SERVER}.*" "${_PACMAN_MIRROR}")
|
||||
fi
|
||||
echo "Using mirror: ${_SYNC_URL}" >"${_LOG}"
|
||||
# comment already existing entries
|
||||
|
|
Loading…
Reference in a new issue