Explorar el Código

put now-playing in quotes to avoid expansions

master
whut hace 1 año
padre
commit
dc873bc8b4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      tooner.sh

+ 1
- 1
tooner.sh Ver fichero

@@ -2,7 +2,7 @@
! pgrep mpd > /dev/null && mpd
lastFile=/tmp/radioLast.$USER
nowPlaying=`mpc current -f "[%artist% - ]%title%"`
nowPlaying=`echo $nowPlaying | sed 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g; s/"/\&quot;/g; s/'"'"'/\&#39;/g'`
nowPlaying=`echo "$nowPlaying" | sed 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g; s/"/\&quot;/g; s/'"'"'/\&#39;/g'`
width=$((${#nowPlaying} > 30 ? ${#nowPlaying} : 30))

if [ $# -eq 0 ]; then


Cargando…
Cancelar
Guardar