diff options
author | eug-vs <eug-vs@keemail.me> | 2021-03-27 03:40:35 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2021-03-27 03:40:35 +0300 |
commit | 9dd957cd58734f08e8ed49d6103eabccff5cd2c9 (patch) | |
tree | c4f7cd8203f32f1b0dde06c9b8cf39126500805c /.local/bin/update_mirrorlist.sh | |
parent | c2bb9120dc577a3719b0b50304bc71f8f9878035 (diff) | |
download | dotfiles-9dd957cd58734f08e8ed49d6103eabccff5cd2c9.tar.gz |
feat: update scripts
Diffstat (limited to '.local/bin/update_mirrorlist.sh')
-rwxr-xr-x | .local/bin/update_mirrorlist.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.local/bin/update_mirrorlist.sh b/.local/bin/update_mirrorlist.sh new file mode 100755 index 0000000..551a0c7 --- /dev/null +++ b/.local/bin/update_mirrorlist.sh @@ -0,0 +1,9 @@ +#!/bin/sh +# Update mirrorlist + +export TMPFILE=$(mktemp) + +sudo true # Force password prompt in the beginning +rate-arch-mirrors --max-delay=21600 | tee -a $TMPFILE +sudo mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist-backup +sudo mv $TMPFILE /etc/pacman.d/mirrorlist |