From: Thanh Ha Date: Wed, 6 Jun 2018 20:54:06 +0000 (-0400) Subject: Disable -x to prevent printing passwords X-Git-Tag: v0.21.0~22 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=b9e325439ed315886ab19affbdacdc26613ba06a;p=releng%2Fglobal-jjb.git Disable -x to prevent printing passwords Change-Id: I9b8254aa8d514ca8513f6c9c7872b4abf287cbd1 Signed-off-by: Thanh Ha --- diff --git a/shell/create-netrc.sh b/shell/create-netrc.sh index 52f239d3..50a419c9 100644 --- a/shell/create-netrc.sh +++ b/shell/create-netrc.sh @@ -31,4 +31,5 @@ machine=$(echo "$NEXUS_URL" | awk -F/ '{print $3}') user=$(echo "$CREDENTIAL" | cut -f1 -d:) pass=$(echo "$CREDENTIAL" | cut -f2 -d:) +set +x # Disable `set -x` to prevent printing passwords echo "machine ${machine%:*} login $user password $pass" > ~/.netrc