Fix APT_UPDATES command

This commit is contained in:
Jeffrey Serio 2025-01-23 16:37:41 -06:00
parent bcb1c9963c
commit 7ceb3c4440

View File

@ -3,7 +3,7 @@
updates=() updates=()
if [[ -f /etc/debian_version ]]; then if [[ -f /etc/debian_version ]]; then
APT_UPDATES=$(sudo apt update 2>/dev/null | grep packages | cut -d '.' -f 1 | awk '{print $1}') APT_UPDATES=$(sudo apt update 2>/dev/null | grep package | tail -1 | cut -d '.' -f 1 | awk '{print $1}')
if [ "$APT_UPDATES" = "All" ]; then if [ "$APT_UPDATES" = "All" ]; then
NUM_UPDATES=0 NUM_UPDATES=0
else else