From a45aa4f7733660f1475a30e92d1a6ca8548663a2 Mon Sep 17 00:00:00 2001 From: eoli3n Date: Wed, 23 Dec 2020 16:02:45 +0100 Subject: [PATCH] test tooltip for pkg module --- roles/waybar/files/waybar/modules/kubernetes.sh | 4 ++-- roles/waybar/files/waybar/modules/pkg.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/waybar/files/waybar/modules/kubernetes.sh b/roles/waybar/files/waybar/modules/kubernetes.sh index 8733440..4d63ae7 100755 --- a/roles/waybar/files/waybar/modules/kubernetes.sh +++ b/roles/waybar/files/waybar/modules/kubernetes.sh @@ -1,6 +1,6 @@ #!/bin/bash -context=$(kubectx -c) -namespace=$(kubens -c) +context=$(kubectx -c 2>/dev/null) +namespace=$(kubens -c 2>/dev/null) if [[ $namespace == "default" ]] then diff --git a/roles/waybar/files/waybar/modules/pkg.sh b/roles/waybar/files/waybar/modules/pkg.sh index 0696756..1be608b 100755 --- a/roles/waybar/files/waybar/modules/pkg.sh +++ b/roles/waybar/files/waybar/modules/pkg.sh @@ -27,7 +27,7 @@ xbps_check(){ exit 0 fi text=" $pkg_count" - tooltip=$(awk '$0=$1' ORS='\\n' '{print $1}' <<< "$pkg") + tooltip=$(awk '$0=$1' ORS='\\n' <<< "$pkg") printf '{"text": "%s", "tooltip": "%s"}' "$text" "$tooltip" }