diff options
author | Rasmus Steinke <rasi@xssn.at> | 2014-08-03 01:43:35 +0200 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2014-08-03 01:43:35 +0200 |
commit | e02a43146a55fd04ad546bc6545815f630751432 (patch) | |
tree | 3ca08dd098e29008902d91bd1af0813adcd4af0f /clerk | |
parent | 0f23a6fcb03472b7400c1b5b5b28053e8e8fabf0 (diff) | |
download | perl-app-clerk-e02a43146a55fd04ad546bc6545815f630751432.tar.gz perl-app-clerk-e02a43146a55fd04ad546bc6545815f630751432.tar.xz |
fixed replace album null-selection
Diffstat (limited to 'clerk')
-rwxr-xr-x | clerk | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -586,8 +586,10 @@ playRandomTracks () { AddAlbum() { + declare -i seen=0 while read TRACK do + seen=1 if [[ "$TRACK" = "0 Return to Main Menu" ]] then dplayPrompt else @@ -601,8 +603,14 @@ AddAlbum() { fi fi done < <(echo -e "0 Return to Main Menu\n---\nAdding Mode: Add\n---\n$(echo "$album_temp")" | dmenu_t -dmenu -p "Choose Album > ") + + if [[ $seen = 0 ]] + then + exit + fi } + InsertAlbum() { while read TRACK do |