diff options
author | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2019-07-23 00:01:48 +0200 |
---|---|---|
committer | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2019-07-23 00:01:48 +0200 |
commit | b371175700f457c8fbc1a8a5dcc34a4f03699633 (patch) | |
tree | 41aa8d0ac686172c8752e22150cf21a602e78d75 | |
parent | Fixed charging battery functionality (diff) | |
download | dwm-b371175700f457c8fbc1a8a5dcc34a4f03699633.tar.gz dwm-b371175700f457c8fbc1a8a5dcc34a4f03699633.tar.bz2 dwm-b371175700f457c8fbc1a8a5dcc34a4f03699633.zip |
PreparationTODO: Add devel support in dwm-status updatecheck
-rwxr-xr-x | scripts/dwm-status | 9 |
1 files 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" |