diff options
author | Hong Guan <hg4105@att.com> | 2018-08-16 09:42:19 -0400 |
---|---|---|
committer | Hong Guan <hg4105@att.com> | 2018-08-16 09:43:09 -0400 |
commit | 59e33384d34340c2608e089bb03c5c118ff15142 (patch) | |
tree | 4d602febd1ed9aea0deeeccfbc2078d12be225ae | |
parent | 11aaa9e4cd2374daa970e6a1db362256e2e02ff8 (diff) |
Change XPath Option for CentOS
Change-Id: I8f2e77a3806a555c89bed38019c36613a983948f
Issue-ID: CCSDK-392
Signed-off-by: Hong Guan <hg4105@att.com>
-rwxr-xr-x | mvn-phase-script.sh | 3 |
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 } |