debug() {
  if [ -z "${DEBUG}" ]; then
    if [ -z "$1" ]; then
      echo Setting DEBUG to "$1"
      export DEBUG="$1"
    else
      echo Setting DEBUG to default
      export DEBUG=default
    fi
  else
    echo Unsetting DEBUG
    unset DEBUG
  fi
}
# if [ -n "${DEBUG}" ]; then set -x; fi
