summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2014-09-25 21:24:26 +0200
committerRasmus Steinke <rasi@xssn.at>2014-09-25 21:24:26 +0200
commit64bcad91b580ac0f154cfbeb9eab26a83c2150d3 (patch)
tree355e2988ce790c4c795eeea3e29b3c5209e83038
parente2f0cbcf508b8e6f018b1e6253cbb6ac04c1424e (diff)
downloadperl-app-clerk-64bcad91b580ac0f154cfbeb9eab26a83c2150d3.tar.gz
perl-app-clerk-64bcad91b580ac0f154cfbeb9eab26a83c2150d3.tar.xz
another fix
-rwxr-xr-xclerk14
1 files changed, 7 insertions, 7 deletions
diff --git a/clerk b/clerk
index 48033d9..848627d 100755
--- a/clerk
+++ b/clerk
@@ -1,4 +1,4 @@
-/!/bin/bash
+#!/bin/bash
shopt -s globstar
source $HOME/.config/clerk/config
@@ -1354,22 +1354,22 @@ browseGenre() {
browseGenre2() {
declare -i seen=0
- while read GENRE
+ while read ARTIST
do
seen=1
export GENRE="$GENRE"
- if [[ "$GENRE" == "0 Return to Genre Menu" ]]
+ if [[ "$ARTIST" == "0 Return to Genre Menu" ]]
then browseGenre
- elif [[ "$GENRE" == "Replace All" ]]
+ elif [[ "$ARTIST" == "Replace All" ]]
then mpc clear && mpc add / && mpc play
- elif [[ "$GENRE" == "Add All" ]]
+ elif [[ "$ARTIST" == "Add All" ]]
then mpc add /
- elif [[ "$GENRE" == "Insert All" ]]
+ elif [[ "$ARTIST" == "Insert All" ]]
then mpc insert /
else
browseAlbum
fi
- done < <(echo -e "0 Return to Main Menu\n---\nAdd All\nInsert all\nReplace all\n---\n$(mpc list artist genre "$GENRE")" | dmenu_t -dmenu -p "Choose Genre > ")
+ done < <(echo -e "0 Return to Genre Menu\n---\nAdd All\nInsert all\nReplace all\n---\n$(mpc list artist genre "$GENRE")" | dmenu_t -dmenu -p "Choose Genre > ")
if [[ $seen = 0 ]]
then