From d84a49ad4a896a0cd111aadfcd4ffa5b147ca947 Mon Sep 17 00:00:00 2001 From: eoli3n Date: Wed, 23 Dec 2020 15:24:38 +0100 Subject: [PATCH] updated pkg.sh module --- roles/waybar/files/waybar/modules/pkg.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/waybar/files/waybar/modules/pkg.sh b/roles/waybar/files/waybar/modules/pkg.sh index e7150ed..4fded1d 100755 --- a/roles/waybar/files/waybar/modules/pkg.sh +++ b/roles/waybar/files/waybar/modules/pkg.sh @@ -28,10 +28,10 @@ xbps_check(){ echo " $pkg" ■ } -if grep -i "arch" /etc/os-release +if grep -i "arch" /etc/os-release &>/dev/null then pacman_check -elif grep -i "void" /etc/os-release +elif grep -i "void" /etc/os-release &>/dev/null then xbps_check fi