An extensive report of the problem can be found here, but the general idea is that fl (for loop) does not play nicely with wg (wget). I tried to iterate through an array inside of a json file, but there were two problems:
if we make the array call static (jsonArray[0]) within the for loop and iterate n amount of times (1 through n), it will display jsonArray[0] more than n times
Any update on this issue? I've been aiming for a while to do it and not able to do it. The issue does seem to be that i is not being replaced in the WGET function