dotfiles/bin/updates.sh

13 lines
200 B
Bash
Raw Normal View History

2018-05-25 21:47:28 +00:00
#!/bin/sh
updates_arch=$(checkupdates | wc -l)
updates_aur=$(pacaur -k | wc -l)
updates=$(("$updates_arch" + "$updates_aur"))
if [ "$updates" -gt 0 ]; then
echo " $updates"
else
echo ""
fi