summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2014-09-25 21:19:22 +0200
committerRasmus Steinke <rasi@xssn.at>2014-09-25 21:19:22 +0200
commite2f0cbcf508b8e6f018b1e6253cbb6ac04c1424e (patch)
tree26e70a413295ead67cf4c7ef3b73b12bd75064ca
parentd3a2fcada3063f445e140a7e36d3e5f88df7b393 (diff)
downloadperl-app-clerk-e2f0cbcf508b8e6f018b1e6253cbb6ac04c1424e.tar.gz
perl-app-clerk-e2f0cbcf508b8e6f018b1e6253cbb6ac04c1424e.tar.xz
fixed bug in genre browser
-rwxr-xr-xclerk12
1 files changed, 6 insertions, 6 deletions
diff --git a/clerk b/clerk
index bb2b767..48033d9 100755
--- a/clerk
+++ b/clerk
@@ -1,4 +1,4 @@
-#!/bin/bash
+/!/bin/bash
shopt -s globstar
source $HOME/.config/clerk/config
@@ -1354,17 +1354,17 @@ browseGenre() {
browseGenre2() {
declare -i seen=0
- while read ARTIST
+ while read GENRE
do
seen=1
- export GENRE="$ARTIST"
+ export GENRE="$GENRE"
if [[ "$GENRE" == "0 Return to Genre Menu" ]]
then browseGenre
- elif [[ "$ARTIST" == "Replace All" ]]
+ elif [[ "$GENRE" == "Replace All" ]]
then mpc clear && mpc add / && mpc play
- elif [[ "$ARTIST" == "Add All" ]]
+ elif [[ "$GENRE" == "Add All" ]]
then mpc add /
- elif [[ "$ARTIST" == "Insert All" ]]
+ elif [[ "$GENRE" == "Insert All" ]]
then mpc insert /
else
browseAlbum