From 8b57e47a00d9d41d00cd620b71f53d0963e9e293 Mon Sep 17 00:00:00 2001 From: ayakael Date: Sat, 7 Apr 2018 12:56:12 -0400 Subject: [PATCH] [print_track_no] Fixed bug with TITLEless tracks --- src/print_track_no | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/print_track_no b/src/print_track_no index 0a82d96..83cc8fc 100644 --- a/src/print_track_no +++ b/src/print_track_no @@ -15,7 +15,7 @@ print_track_no() { local IMAGEID="${2}" local TRACKID="${3}" - local TOTALTRACKS=$(grep TITLE ${GIT_DIR}/${IMAGEID}.tags | wc -l) + local TOTALTRACKS=$(grep \"@\" ${GIT_DIR}/${IMAGEID}.tags | wc -l) local COUNT=1 while [[ ${COUNT} -le ${TOTALTRACKS} ]]; do