Last active 1752986982

apt-has-upgradable.sh Raw
1count=$(apt list --upgradable | sed 's/\// /' | awk '{print $1}' | sed 1d | wc -l)
2if (($count == 0)); then
3 MESSAGE="System is up to date"
4else
5 MESSAGE="System is not up to date. Remaining packages: $count"
6fi
7