From 225b4fe6186ae8aee0ab606d89c01eee3ab39f75 Mon Sep 17 00:00:00 2001 From: Salt Date: Sun, 30 Jul 2017 19:31:12 -0500 Subject: [PATCH] Bugfix for playlist script --- .bin/mpc/mpc-i3-playlists | 3 +++ 1 file changed, 3 insertions(+) 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