`set -e` causes the shell to exit if any command returns non-zero. `successfully` does the same but adds a "failed" output. `set -e` is perfect for these sort of scripts, I use it in pretty much all scripts. `succesfully` feels a bit redundant (IMHO).