Ubuntu Upd - Github For

Solution: Use sudo for system-wide updates

SECURITY_UPDATES=$(apt list --upgradable 2>/dev/null | grep -i security | wc -l) TOTAL_UPDATES=$(apt list --upgradable 2>/dev/null | tail -n +2 | wc -l) github for ubuntu upd

if [[ $TOTAL_UPDATES -eq 0 ]]; then echo "No updates for $MACHINE_ID" exit 0 fi github for ubuntu upd

If you followed the installation steps in Part 2 (adding the repo to sources), updating is automatic: github for ubuntu upd

sudo apt update
sudo apt upgrade gh