From 75836300cb7f5d5cc3609201f14d630cc9dc5c96 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Mon, 8 Aug 2022 19:57:05 -0500 Subject: [PATCH] refactor(waybar): use shellcheck action --- dots/.config/waybar/scripts/get-media.bash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dots/.config/waybar/scripts/get-media.bash b/dots/.config/waybar/scripts/get-media.bash index 6bfff288..bd68faa3 100755 --- a/dots/.config/waybar/scripts/get-media.bash +++ b/dots/.config/waybar/scripts/get-media.bash @@ -5,7 +5,8 @@ main() { local text="" class="$(playerctl metadata --format '{{lc(status)}}')" - local player_ctl_info="$(playerctl metadata --format '{{ artist }} | {{ title }} | {{ album }}')" + local player_ctl_info + player_ctl_info="$(playerctl metadata --format '{{ artist }} | {{ title }} | {{ album }}')" if [[ "${class}" == "playing" ]]; then text=" ${player_ctl_info}"