From: Cameron Ball Date: Mon, 8 Apr 2019 15:40:47 +0000 (+0800) Subject: Make sure song_paths is empty in categorise X-Git-Url: https://git.cameron1729.xyz/?a=commitdiff_plain;h=b308ecd62a889552568b829104f9f4b86b2007af;p=GrooveNet.git Make sure song_paths is empty in categorise --- 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)