From 20fad4bfba1fbf475b2d7e0d778cf536832301bf Mon Sep 17 00:00:00 2001 From: Faerbit Date: Sat, 23 Apr 2016 14:51:07 +0200 Subject: [PATCH] Updating update-mirrors. --- zsh_functions | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zsh_functions b/zsh_functions index 131c88f..ef42a17 100644 --- a/zsh_functions +++ b/zsh_functions @@ -106,7 +106,8 @@ update-mirrors() { then echo "Not supported on this architecture." else - sudo sh -c "reflector -p http -l 50 --sort rate | tee /etc/pacman.d/mirrorlist" + sudo sh -c "reflector -p http -l 50 --sort rate | tee /etc/pacman.d/mirrorlist_" + sudo sed -i 's/mirrorlist$/mirrorlist_/g' /etc/pacman.conf fi }