mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
WTF git
This commit is contained in:
commit
6992b20a28
14
.local/bin/update_mirrors
Executable file
14
.local/bin/update_mirrors
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
run_reflector(){
|
||||||
|
dialog --title "Refresh mirrors" --yesno "Run reflector? It might speed up package downloads." 7 60
|
||||||
|
response=$?
|
||||||
|
case $response in
|
||||||
|
0) (reflector --verbose --latest 100 --sort rate --save /etc/pacman.d/mirrorlist &> /dev/null; notify-send "Mirrors refreshed") & ;;
|
||||||
|
1) notify-send "Mirrors not refreshed ;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
run_reflector
|
||||||
|
clear
|
||||||
|
exit 0
|
||||||
Loading…
x
Reference in New Issue
Block a user