diff options
author | Rasmus Steinke <rasi@xssn.at> | 2014-09-25 21:24:26 +0200 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2014-09-25 21:24:26 +0200 |
commit | 64bcad91b580ac0f154cfbeb9eab26a83c2150d3 (patch) | |
tree | 355e2988ce790c4c795eeea3e29b3c5209e83038 | |
parent | e2f0cbcf508b8e6f018b1e6253cbb6ac04c1424e (diff) | |
download | perl-app-clerk-64bcad91b580ac0f154cfbeb9eab26a83c2150d3.tar.gz perl-app-clerk-64bcad91b580ac0f154cfbeb9eab26a83c2150d3.tar.xz |
another fix
-rwxr-xr-x | clerk | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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 |