since there is a lot of bash to build tracks, maybe try out shellcheck https://github.com/koalaman/shellcheck