[print_track_no] Fixed bug with TITLEless tracks

This commit is contained in:
ayakael 2018-04-07 12:56:12 -04:00
parent de4f4f9ae8
commit 8b57e47a00
No known key found for this signature in database
GPG key ID: 575626A4AE5F4026

View file

@ -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