X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fcreate-netrc.sh;h=2c7f7823edd3d2d8052812c54d814113d65cff17;hb=f492626a44e6b6baf93ab9259547b9af0500e52d;hp=35bc0c3be8493999cf282efed1e900fc6b403d5d;hpb=6df0d5a717c1e3c33aae618b80382b491476cd54;p=releng%2Fglobal-jjb.git diff --git a/shell/create-netrc.sh b/shell/create-netrc.sh index 35bc0c3b..2c7f7823 100644 --- a/shell/create-netrc.sh +++ b/shell/create-netrc.sh @@ -23,4 +23,4 @@ machine=$(echo "$NEXUS_URL" | awk -F/ '{print $3}') user=$(echo "$CREDENTIAL" | cut -f1 -d:) pass=$(echo "$CREDENTIAL" | cut -f2 -d:) -echo "machine $machine login $user password $pass" > ~/.netrc +echo "machine ${machine%:*} login $user password $pass" > ~/.netrc