.dotfiles/.local/bin/archlinux-check-updates

9 lines
155 B
Bash
Executable file

#!/bin/sh
pkg_updates_count=$(checkupdates 2> /dev/null | wc -l)
if [ $((pkg_updates_count)) -gt 0 ]
then
echo $pkg_updates_count
else
echo ""
fi