Browse Source

fix command for reflect_mirrorlist

pull/1/head
10sr 10 years ago
parent
commit
1b0d65ef06
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      shrc

+ 2
- 2
shrc View File

@@ -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 && {


Loading…
Cancel
Save