From 629688f293a140ccd83e6abe607b973c8ee28df4 Mon Sep 17 00:00:00 2001 From: Bernhard Landauer Date: Fri, 3 Mar 2017 01:12:01 +0100 Subject: [PATCH] fix rank_mirrors - for some reason with the other variation pacman-mirrors doesn't manage to display mirror selection list. --- lib/util.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/util.sh b/lib/util.sh index e6079e5..901597d 100644 --- a/lib/util.sh +++ b/lib/util.sh @@ -340,10 +340,10 @@ rank_mirrors() { "testing" "-" off \ "unstable" "-" off 2>${BRANCH} clear - [[ ! -z "$(cat ${BRANCH})" ]] && { + if [[ ! -z "$(cat ${BRANCH})" ]]; then pacman-mirrors -gib "$(cat ${BRANCH})" 2>$ERR check_for_error "$FUNCNAME branch $(cat ${BRANCH})" $? - } + fi } # Simple code to show devices / partitions.