Support for apt and ubuntu in CheckUpdates script (#230)
Co-authored-by: Zoran Olujic <zoran.olujic@beyonnex.com>
This commit is contained in:
@@ -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"
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user