Code Review
/
releng
/
global-jjb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
386d0e8
)
Disable -x to prevent printing passwords
82/11082/1
author
Thanh Ha
<thanh.ha@linuxfoundation.org>
Wed, 6 Jun 2018 20:54:06 +0000
(16:54 -0400)
committer
Thanh 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
patch
|
blob
|
history
diff --git
a/shell/create-netrc.sh
b/shell/create-netrc.sh
index
52f239d
..
50a419c
100644
(file)
--- 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