tl;dr

Not using a linter while bashing out shell scripts? you should be! Try ShellCheck

--verbose

//TODO