From b308ecd62a889552568b829104f9f4b86b2007af Mon Sep 17 00:00:00 2001 From: Cameron Ball Date: Mon, 8 Apr 2019 23:40:47 +0800 Subject: [PATCH] Make sure song_paths is empty in categorise --- Categorise.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Categorise.sh b/Categorise.sh index cd9ab66..fc08c40 100755 --- a/Categorise.sh +++ b/Categorise.sh @@ -20,7 +20,7 @@ if [ "$1" = "apply" ]; then rm -rf "$path_to_songs/$footspeed_folder" mkdir "$path_to_songs/$footspeed_folder" declare -A song_paths - + song_paths=() for i in "${lines[@]}"; do if [ -z "${song_paths[$i]}" ]; then song_paths["$i"]+=$(grep $i "${DIR}/${songs_file}" | cut -sd / -f5-6) @@ -47,7 +47,7 @@ if [ "$1" = "apply" ]; then rm -rf "$path_to_songs/$stamina_folder" mkdir "$path_to_songs/$stamina_folder" declare -A song_paths - + song_paths=() for i in "${lines[@]}"; do if [ -z "${song_paths[$i]}" ]; then song_paths["$i"]+=$(grep $i "${DIR}/${songs_file}" | cut -sd / -f5-6) -- 2.11.0