Disable -x to prevent printing passwords 82/11082/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 6 Jun 2018 20:54:06 +0000 (16:54 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 6 Jun 2018 21:08:16 +0000 (17:08 -0400)
Change-Id: I9b8254aa8d514ca8513f6c9c7872b4abf287cbd1
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
shell/create-netrc.sh

index 52f239d..50a419c 100644 (file)
@@ -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