How do I check syntax of a bash script?

This is also quite easy:

bash -n ./test.sh

You cannot comment on this entry