adding "set -e" to script.sh