Add delay before checking system updates

master
Quentin Duchemin 2019-01-26 19:28:04 +01:00
parent 69647d0238
commit 5be59973aa
Signed by: Chosto
GPG Key ID: 0547178FEEDE7D6B
1 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,8 @@
#!/bin/sh #!/bin/sh
# Seems like the network is not up yet when this script is launched
# for the first time, causing an error. So wait a bit
sleep 5
updates_arch=$(/usr/bin/checkupdates | wc -l) updates_arch=$(/usr/bin/checkupdates | wc -l)
if ! updates_aur=$(trizen -Su --aur --quiet | wc -l); then if ! updates_aur=$(trizen -Su --aur --quiet | wc -l); then