From 1b0d65ef064a667efccaa8abb58c76bad693f395 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Sun, 1 Jun 2014 14:43:35 +0900 Subject: [PATCH] fix command for reflect_mirrorlist --- shrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shrc b/shrc index 76af871..024a717 100755 --- a/shrc +++ b/shrc @@ -449,12 +449,12 @@ __my_pacman_update_mirrorlist_with_reflector(){ cmd="$(expr "$(grep -m 1 reflector $ml)" : '# With: *\(.*\)')" if test -z "$cmd" then - cmd="reflector --verbose --countries Japan --latest 5 --sort rate --save $ml" + cmd="reflector --verbose --country Japan --latest 5 --sort rate --save $ml" fi echo ">>> $cmd ..." 1>&2 sudo sh -c "$cmd" } -null type reflector && test -f /etc/pacman.d/mirrorlist && \ +null type reflector && test -d /etc/pacman.d && \ alias reflect_mirrorlist=__my_pacman_update_mirrorlist_with_reflector null type apt-get && {