diff options
author | Rasmus Steinke <rasi@xssn.at> | 2015-06-06 14:41:58 +0200 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2015-06-06 14:41:58 +0200 |
commit | 8604aa4e8caa2cfb56e508e45a8dc672db8a7673 (patch) | |
tree | 48677874c1fe394a81385578b364a1e7fcc1c18c | |
parent | cd6c0328e41953292fd4ce97935a30443ed602f2 (diff) | |
download | perl-app-clerk-8604aa4e8caa2cfb56e508e45a8dc672db8a7673.tar.gz perl-app-clerk-8604aa4e8caa2cfb56e508e45a8dc672db8a7673.tar.xz |
fix variable
-rwxr-xr-x | clerk | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1557,8 +1557,8 @@ browseAlbumArtist() { } browseGenre () { - menu=$(echo -e "0 Return to Browser Menu\n---\n$(mpc list genre)" | rofi -dmenu -p "Choose Genre > ") - if [[ $menu == "0 Return to Browser Menu" ]]; then + GENRE=$(echo -e "0 Return to Browser Menu\n---\n$(mpc list genre)" | rofi -dmenu -p "Choose Genre > ") + if [[ $GENRE == "0 Return to Browser Menu" ]]; then browseLibPrompt else browseGenre2 @@ -1569,7 +1569,7 @@ browseGenre2 () { HELP="<span color='$help_color'>${add}: Add Album | ${insert}: Insert Album | ${replace}: Replace Album (Default) ${addall}: Add All | ${insertall}: Insert All | ${replaceall}: Replace All</span>" -ALBUM_TEMP=$(echo -e "< Return to Genre Browser\n---\n$(mpc -f "%date%$separator%artist%$separator%album%" search genre "$GENRE" | uniq | sort -r)" | rofi -dmenu -select "$entry" -format "f¬s" -filter "$filter" -mesg "${HELP}" -p "Choose Album > ") +ALBUM_TEMP=$(echo -e "< Return to Genre Browser\n---\n$(mpc -f "%date%$separator%albumartist%$separator%album%" search genre "$GENRE" | uniq | sort -r)" | rofi -dmenu -select "$entry" -format "f¬s" -filter "$filter" -mesg "${HELP}" -p "Choose Album > ") val=$? |