From aadc4f7df785cfa8a101b1d3dcf8662ddce2c6e3 Mon Sep 17 00:00:00 2001 From: Hydroxycarbamide Date: Wed, 15 May 2024 19:10:13 +0200 Subject: [PATCH] Fix paru update count --- dot_config/waybar/modules/executable_updates.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dot_config/waybar/modules/executable_updates.sh b/dot_config/waybar/modules/executable_updates.sh index 2d48bf4..ce0f2ba 100644 --- a/dot_config/waybar/modules/executable_updates.sh +++ b/dot_config/waybar/modules/executable_updates.sh @@ -1,9 +1,7 @@ #!/usr/bin/env bash pkg_updates() { - updates=$(pacman -Qu | wc -l) - aurupdates=$(paru -Qua | wc -l) - updates=$((updates + aurupdates)) - if [ $updates -gt 0 ]; then + updates=$(paru -Qu | wc -l) + if [ "$updates" -gt 0 ]; then echo -n " $updates" fi }