#!/bin/bash -e :: what is `-e`? other arguments?

http://www.gnu.org/software/bash/manual/bashref.html#Invoking-Bash
http://www.gnu.org/software/bash/manual/bashref.html#The-Set-Builtin

-e

Exit immediately if a pipeline [...] returns a non-zero status.

Many details elided, so read that manual.

An example:

#!/bin/bash
set -e   # same as putting -e in the shebang
( exit 42 )
echo "you won't see this: