summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
}