globstar is a fancy, new bash command, but it won't be very reliable across systems and implementations. For instance, doesn't work on my mac, even after upgrading to the newest bash version with homebrew.
line 6: shopt: globstar: invalid shell option name
Since esp implementations will likely have python, I think you could get away with writing this in python. I'd be happy to do that if you'd like.
globstar is a fancy, new bash command, but it won't be very reliable across systems and implementations. For instance, doesn't work on my mac, even after upgrading to the newest bash version with homebrew.
line 6: shopt: globstar: invalid shell option name
Since esp implementations will likely have python, I think you could get away with writing this in python. I'd be happy to do that if you'd like.