upgrade from set -eu

if [[ -n "$DEBUG" ]]; then