summaryrefslogtreecommitdiffstats
path: root/mvn-phase-script.sh
diff options
context:
space:
mode:
authorHong Guan <hg4105@att.com>2018-08-16 09:42:19 -0400
committerHong Guan <hg4105@att.com>2018-08-16 09:43:09 -0400
commit59e33384d34340c2608e089bb03c5c118ff15142 (patch)
tree4d602febd1ed9aea0deeeccfbc2078d12be225ae /mvn-phase-script.sh
parent11aaa9e4cd2374daa970e6a1db362256e2e02ff8 (diff)
Change XPath Option for CentOS
Change-Id: I8f2e77a3806a555c89bed38019c36613a983948f Issue-ID: CCSDK-392 Signed-off-by: Hong Guan <hg4105@att.com>
Diffstat (limited to 'mvn-phase-script.sh')
-rwxr-xr-xmvn-phase-script.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/mvn-phase-script.sh b/mvn-phase-script.sh
index 97cfeb8..d125a52 100755
--- a/mvn-phase-script.sh
+++ b/mvn-phase-script.sh
@@ -49,7 +49,8 @@ function setnetrc {
hostport=$(echo $1 | cut -f3 -d /)
host=$(echo $hostport | cut -f1 -d:)
settings=${SETTINGS_FILE:-$HOME/.m2/settings.xml}
- echo machine $host login $(xpath -q -e "//servers/server[id='$serverid']/username/text()" $settings) password $(xpath -q -e "//servers/server[id='$serverid']/password/text()" $settings) >$HOME/.netrc
+ # echo machine $host login $(xpath -q -e "//servers/server[id='$serverid']/username/text()" $settings) password $(xpath -q -e "//servers/server[id='$serverid']/password/text()" $settings) >$HOME/.netrc
+ echo machine $host login $(xpath $settings "//servers/server[id='$serverid']/username/text()") password $(xpath $settings "//servers/server[id='$serverid']/password/text()") >$HOME/.netrc
chmod 600 $HOME/.netrc
set -x
}