Correction du script mpd

This commit is contained in:
Breizh 2019-09-09 20:18:01 +02:00
parent 4b71bae1e9
commit c1d1f57386

View file

@ -80,7 +80,7 @@ then
fi fi
fi fi
time="$(echo -e 'status\nclose' | nc -U .mpd/socket | grep time \ time="$(echo -e 'status\nclose' | nc -U $MPD_HOST | grep time \
| cut -d' ' -f2)" | cut -d' ' -f2)"
time_elapsed=$(human_time "${time%:*}") time_elapsed=$(human_time "${time%:*}")