mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-11-06 11:22:23 +00:00
17 lines
293 B
Bash
Executable file
17 lines
293 B
Bash
Executable file
#!/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"))
|
|
|
|
if [ "$updates" -gt 0 ]; then
|
|
echo "# $updates"
|
|
else
|
|
echo ""
|
|
fi
|