From b371175700f457c8fbc1a8a5dcc34a4f03699633 Mon Sep 17 00:00:00 2001 From: Manuel Palenzuela Date: Tue, 23 Jul 2019 00:01:48 +0200 Subject: PreparationTODO: Add devel support in dwm-status updatecheck --- scripts/dwm-status | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/dwm-status b/scripts/dwm-status index ffd37e7..d19d100 100755 --- a/scripts/dwm-status +++ b/scripts/dwm-status @@ -31,12 +31,15 @@ updates() { # if ! updates_aur=$(cower -u 2> /dev/null | wc -l); then if ! updates_aur=$(trizen -Su --aur --quiet | wc -l); then updates_aur=0 + else + updates_aur=0 fi else - updates_aur=0 + : fi - - updates=$(("$updates_arch" + "$updates_aur")) + # TODO: Implenent devel update accounting + updates_devel=0 + updates=$(("$updates_arch" + "$updates_aur" + "$updates_devel")) if [ "$updates" -gt 0 ]; then echo " Updates: $updates" -- cgit 1.4.1