ubuntu bash script exit when error code example Example: ubuntu bash script exit when error # exit when any command fails set -e