Add icon when packages are syncing
This commit is contained in:
parent
4c9714c4c1
commit
8016736cc8
@ -2,4 +2,8 @@
|
|||||||
|
|
||||||
ping -q -c 1 1.1.1.1 > /dev/null || exit 1
|
ping -q -c 1 1.1.1.1 > /dev/null || exit 1
|
||||||
|
|
||||||
|
echo " " > /tmp/packagesupdate
|
||||||
|
refbar &
|
||||||
pacman -Syyuw --noconfirm
|
pacman -Syyuw --noconfirm
|
||||||
|
rm -f /tmp/packagesupdate
|
||||||
|
refbar &
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
sudo reflector --latest 200 --protocol http --protocol https --sort \
|
reflector --latest 200 --protocol http --protocol https --sort \
|
||||||
rate --save /etc/pacman.d/mirrorlist
|
rate --save /etc/pacman.d/mirrorlist
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
echo " $(pacman -Qu | wc -l)"
|
icon="$(cat /tmp/packagesupdate 2>/dev/null)"
|
||||||
|
echo " $(pacman -Qu | wc -l)$icon"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user