summaryrefslogtreecommitdiffstats
path: root/clerk
diff options
context:
space:
mode:
Diffstat (limited to 'clerk')
-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