From 5666ca42d78f5e0035fd334f52959e29f0911b6c Mon Sep 17 00:00:00 2001 From: "Archie Hilton (thytom)" Date: Fri, 25 Oct 2019 13:11:58 +0100 Subject: Fix whitespace issues with mpd module. --- modules/mpd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/mpd b/modules/mpd index 5db0d64..67c319f 100755 --- a/modules/mpd +++ b/modules/mpd @@ -5,20 +5,20 @@ PREFIX_PAUSE=' ' get_mpd() { - current_song=$(mpc current) + current_song="$(mpc current)" if [[ "$current_song" = "" ]]; then exit 0 else playpause=$(mpc | awk '/\[.*]/{split($0, a, " "); print a[1]}') if [[ "$playpause" = "[playing]" ]]; then - current_song=$PREFIX_PLAY$current_song + current_song="$PREFIX_PLAY $current_song" elif [[ "$playpause" = "[paused]" ]]; then - current_song=$PREFIX_PAUSE$current_song + current_song="$PREFIX_PAUSE $current_song" fi fi - echo $current_song + echo "$current_song" } get_mpd -- cgit v1.2.3