Bail out in case of error

set -e immediately ends the execution of the shell upon an error that is not caught by || or by having it in an if control statement. This comes handy for smallish servers that might not have curl but wget installed.