Run the bash script and fix the syntax problem
Anonymous
There was a scoping problem in which variable wasn't seen in the last code block. As I didn't know enough bash at the time I couldn't exactly fix it.
Check out your Company Bowl for anonymous work chats.