diff --git a/tooner.sh b/tooner.sh index fc3fd50..19bcd2b 100755 --- a/tooner.sh +++ b/tooner.sh @@ -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'` +nowPlaying=`echo "$nowPlaying" | sed 's/&/\&/g; s//\>/g; s/"/\"/g; s/'"'"'/\'/g'` width=$((${#nowPlaying} > 30 ? ${#nowPlaying} : 30)) if [ $# -eq 0 ]; then