put now-playing in quotes to avoid expansions
This commit is contained in:
parent
3b27189081
commit
dc873bc8b4
@ -2,7 +2,7 @@
|
||||
! pgrep mpd > /dev/null && mpd
|
||||
lastFile=/tmp/radioLast.$USER
|
||||
nowPlaying=`mpc current -f "[%artist% - ]%title%"`
|
||||
nowPlaying=`echo $nowPlaying | sed 's/&/\&/g; s/</\</g; s/>/\>/g; s/"/\"/g; s/'"'"'/\'/g'`
|
||||
nowPlaying=`echo "$nowPlaying" | sed 's/&/\&/g; s/</\</g; s/>/\>/g; s/"/\"/g; s/'"'"'/\'/g'`
|
||||
width=$((${#nowPlaying} > 30 ? ${#nowPlaying} : 30))
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user