Commit 747a53b6 authored by nimrod's avatar nimrod
Browse files

Correct detection of pending APT updates.

parent 206a6e58
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ fi

fwupdmgr --assume-yes get-updates

if  [ -n "$(apt list --upgradable 2>/dev/null)" ] || \
if  [ "$(apt list --upgradable 2>/dev/null | wc -l)" -gt '1' ] || \
    [ -n "$(fwupdmgr --assume-yes get-updates)" ]
then
    curl "https://notify.shore.co.il/send?message=$(hostname --short)%20has%20pending%20updates."