You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
296 B

2 years ago
  1. #!/bin/sh
  2. if ! updates_arch=$(checkupdates 2> /dev/null | wc -l ); then
  3. updates_arch=0
  4. fi
  5. if ! updates_aur=$(yay -Qum 2> /dev/null | wc -l); then
  6. updates_aur=0
  7. fi
  8. updates=$(("$updates_arch" + "$updates_aur"))
  9. RED='\033[0;31m'
  10. if [ "$updates" -gt 0 ]; then
  11. echo "$updates"
  12. fi