On Debian bourne shell sh points to dash
this causes endwall.sh not to work. Change line 1 to #!/bin/bash
I haven't tested the rest of the scripts but this might also impact the other endware scripts as well, if so change the #!/bin/sh to #!/bin/bash if you are running bash.
I spent an hour looking through my code to find the error that was messing it up. That was frustrating. I'll have to look into the syntax for dash if statements, for logic evaluation which seems to be where the problem is.