diff --git a/.bin/mpc/mpc-i3-playlists b/.bin/mpc/mpc-i3-playlists index 3a7d5b5a..b662f6af 100755 --- a/.bin/mpc/mpc-i3-playlists +++ b/.bin/mpc/mpc-i3-playlists @@ -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