aboutsummaryrefslogtreecommitdiff
path: root/modules/mpd
diff options
context:
space:
mode:
authorArchie Hilton <archie.hilton1@gmail.com>2019-10-26 16:28:32 +0100
committerGitHub <noreply@github.com>2019-10-26 16:28:32 +0100
commitffc3c2ea0a11afadf3b0de74761080abb4ecf7a5 (patch)
tree0d6b400c44291d8d6947b2a6aac01f55c075785a /modules/mpd
parentf39d667cb029592ed69ea35cb5069c3ea2fb7fb2 (diff)
parentf1affabae0891f0746cc68d6dafee33d5ffaf1ce (diff)
Merge pull request #6 from thytom/spacingfixed
Spacing fixed in many modules.
Diffstat (limited to 'modules/mpd')
-rwxr-xr-xmodules/mpd8
1 files 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