escape chars in now playing text
This commit is contained in:
parent
bb6ee39ef8
commit
a657bf1388
@ -2,6 +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'`
|
||||
width=$((${#nowPlaying} > 30 ? ${#nowPlaying} : 30))
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user