putted the syntax check in a bash file