Link: Add tack e x on your bash shebang | #!/bin/bash -ex

Bash scripts can use various options on the shebang (#!/bin/bash). A more common one is: ‘#!/bin/bash -ex’ Here is the scoop!

Full article here:
Add tack e x on your bash shebang | #!/bin/bash -ex (scottlinux.com)