|
@@ -3,7 +3,7 @@
|
|
|
PLAYLIST="~/radio-playlist"
|
|
|
songs_in_playlist=$(mpc | head -n 2 | tail -n 1 | cut -d / -f 2 | cut -d ' ' -f 1)
|
|
|
|
|
|
-if [[ $songs_in_playlist -le 3 ]]
|
|
|
+if [[ $(mpc | wc -l) -le 1 || $songs_in_playlist -le 3 ]]
|
|
|
then
|
|
|
for song in $(cat $PLAYLIST | shuf | head -n 3)
|
|
|
do
|