From 4af52c8983138fe4301979a017e5cf837d33fa88 Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Tue, 12 May 2026 22:30:33 +0200 Subject: [PATCH] fix updates in mb-status --- bin/mb-status | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/mb-status b/bin/mb-status index 9d300b1..77c71a1 100755 --- a/bin/mb-status +++ b/bin/mb-status @@ -54,7 +54,7 @@ fi REPO=$(wc -l $UPDATES_LIST | awk '{print $1}') AUR=$(wc -l $AUR_UPDATES_LIST | awk '{print $1}') -updates=$((REPO + AUR)) +upkgs=$((REPO + AUR)) left(){ @@ -223,7 +223,7 @@ else out+=(" $_INSTALLED: $INSTDATE $DAGO,mcc") fi -if [[ "${updates}" == 0 ]];then +if [[ "${upkgs}" == 0 ]];then out+=("^sep( ${OK_ICON} $_UP_TO_DATE)") out+=("󰦛 $_CHECK_NOW,checkupdates.sh -p") out+=("^sep()") @@ -245,8 +245,8 @@ out+=("^sep()") fi fi -if [[ "${updates}" != 0 ]];then -out+=("^sep( 󰮯 $_PENDING: ${updates} )") +if [[ "${upkgs}" != 0 ]];then +out+=("^sep( 󰮯 $_PENDING: ${upkgs} )") out+=("^sep( repo: ${REPO} AUR: ${AUR} )") if hash pacman-mirrors 2>/dev/null;then @@ -469,7 +469,7 @@ if [[ "${disk_limit}" -gt "0" ]];then done < <(df -h | grep '^/dev' | grep -v 'boot' | grep -v 'loop' | grep -v '/run/media') fi [[ "${dirty}" == 1 ]] && msg=" 󰻌 " || msg=" ${OK_ICON} " -[[ "${updates}" -gt 0 ]] && msg=" 󰮯 ${updates} " +[[ "${upkgs}" -gt 0 ]] && msg=" 󰮯 ${upkgs} " echo "${msg}" }