From b9e325439ed315886ab19affbdacdc26613ba06a Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Wed, 6 Jun 2018 16:54:06 -0400 Subject: [PATCH] Disable -x to prevent printing passwords Change-Id: I9b8254aa8d514ca8513f6c9c7872b4abf287cbd1 Signed-off-by: Thanh Ha --- shell/create-netrc.sh | 1 + 1 file changed, 1 insertion(+) 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 -- 2.16.6