Bugfix for playlist script

This commit is contained in:
Salt 2017-07-30 19:31:12 -05:00
parent 16afe4cbc9
commit 225b4fe618

View File

@ -1,5 +1,8 @@
#!/bin/bash
PLAYLIST="$(mpc lsplaylists | rofi -lines 10 -dmenu -p 'Play MPD Playlist: ')"
if [ "$PLAYLIST" = "" ]; then
exit
fi
mpc clear
mpc load $PLAYLIST
mpc play