X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fdocker-login.sh;h=92da7e0d03f213c7601f5dcda471825659492e82;hb=f492626a44e6b6baf93ab9259547b9af0500e52d;hp=210ce3bbcd9c51869787b1efdfad91d796ff95ef;hpb=3297f525cb682be0b06624e11482c258fabe5341;p=releng%2Fglobal-jjb.git diff --git a/shell/docker-login.sh b/shell/docker-login.sh index 210ce3bb..92da7e0d 100644 --- a/shell/docker-login.sh +++ b/shell/docker-login.sh @@ -35,6 +35,7 @@ set -eu -o pipefail # Execute the credential lookup and login to the registry do_login() { + set +x # Ensure that no other scripts add `set -x` and print passwords echo "$1" CREDENTIAL=$(xmlstarlet sel -N "x=http://maven.apache.org/SETTINGS/1.0.0" \ -t -m "/x:settings/x:servers/x:server[starts-with(x:id, '${1}')]" \ @@ -66,7 +67,7 @@ do_login() { then docker login -u "$USER" -p "$PASS" -e "$2" "$1" else - docker login -u "$USER" -p "$PASS" + docker login -u "$USER" -p "$PASS" "$1" fi }