add set -e to deploy script