Debugging shell scripts isn‘t that hard, look at the error generated, mosltly in the logs(post them here) which also has a line number, go to that line and fix it, look if there is a missing ";" , if u cant fix it remove the line and note braces.If there are any remove and try compiling again...