-#!/bin/bash
+#!/bin/bash -l
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2017 The Linux Foundation and others.
# Uses wget to fetch a project's maven-metadata.xml files from a Maven repository.
# Ensure we fail the job if any steps fail.
-set -eu -o pipefail
+set -xeu -o pipefail
project=$(xmlstarlet sel \
-N "x=http://maven.apache.org/POM/4.0.0" -t \