diff options
author | Andrew Gauld <ag1282@att.com> | 2017-08-30 11:01:45 -0400 |
---|---|---|
committer | Andrew Gauld <ag1282@att.com> | 2017-08-30 11:03:12 -0400 |
commit | 6ea7992556679349a3274c67f16639fc2c13445e (patch) | |
tree | f2007d825129ac621519ce8f0e0442fc5ba58507 | |
parent | 976f6da7bc0171ee9d8094f18dadd3dc1c0789e4 (diff) |
update mvn-stage script xpath cmd syntax
Change-Id: Icaa59432907ee6e38f2642faae2b9841fd03ff82
Issue-Id: CCSDK-66
Signed-off-by: Andrew Gauld <ag1282@att.com>
-rwxr-xr-x | mvn-phase-script.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mvn-phase-script.sh b/mvn-phase-script.sh index 5b14754..462ad1a 100755 --- a/mvn-phase-script.sh +++ b/mvn-phase-script.sh @@ -98,7 +98,7 @@ deploy) hostport=$(echo $1 | cut -f3 -d /) host=$(echo $hostport | cut -f1 -d:) settings=$HOME/.m2/settings.xml - ( echo machine $host; echo login $(xpath $settings "//servers/server[id='$MVN_SERVER_ID']/username/text()"); echo password $(xpath $settings "//servers/server[id='$MVN_SERVER_ID']/password/text()") ) >$HOME/.netrc + ( echo machine $host; echo login $(xpath -q -e "//servers/server[id='$MVN_SERVER_ID']/username/text()" $settings); echo password $(xpath -q -e "//servers/server[id='$MVN_SERVER_ID']/password/text()" $settings) ) >$HOME/.netrc chmod 600 $HOME/.netrc set -x } |