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
17 lines
296 B
#!/bin/sh
|
|
|
|
if ! updates_arch=$(checkupdates 2> /dev/null | wc -l ); then
|
|
updates_arch=0
|
|
fi
|
|
|
|
if ! updates_aur=$(yay -Qum 2> /dev/null | wc -l); then
|
|
updates_aur=0
|
|
fi
|
|
|
|
updates=$(("$updates_arch" + "$updates_aur"))
|
|
|
|
RED='\033[0;31m'
|
|
|
|
if [ "$updates" -gt 0 ]; then
|
|
echo " $updates"
|
|
fi
|