From 6589c8eed5380e03693582de08e389627629ae76 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Tue, 30 Jul 2024 15:51:58 +0200 Subject: [PATCH] remove head, not needed with rg --- usr/bin/archboot-pacsetup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/bin/archboot-pacsetup.sh b/usr/bin/archboot-pacsetup.sh index 9fc545298..4d73c29e5 100755 --- a/usr/bin/archboot-pacsetup.sh +++ b/usr/bin/archboot-pacsetup.sh @@ -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