Support for apt and ubuntu in CheckUpdates script (#230)

Co-authored-by: Zoran Olujic <zoran.olujic@beyonnex.com>
This commit is contained in:
Zoran Olujić
2024-09-07 04:04:52 +02:00
committed by GitHub
parent c0561a7c8d
commit 5373c106d2

View File

@@ -5,10 +5,18 @@ check_arch_updates() {
echo "$result"
}
check_ubuntu_updates() {
result=$(apt-get -s -o Debug::NoLocking=true upgrade | grep -c ^Inst)
echo "$result"
}
case "$1" in
-arch)
check_arch_updates
;;
-ubuntu)
check_ubuntu_updates
;;
*)
echo "0"
;;