Repository: incubator-trafficcontrol
Updated Branches:
  refs/heads/master da9bd9ad4 -> 033552978


cd to traffic_monitor prior to mvn call


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/6a3f52f5
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/6a3f52f5
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/6a3f52f5

Branch: refs/heads/master
Commit: 6a3f52f56608b0796d20ec38d78594420b06e125
Parents: da9bd9a
Author: Dan Kirkwood <dang...@gmail.com>
Authored: Tue Nov 29 16:18:55 2016 +0000
Committer: Dan Kirkwood <dang...@gmail.com>
Committed: Tue Nov 29 16:18:55 2016 +0000

----------------------------------------------------------------------
 traffic_monitor/build/build_rpm.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/6a3f52f5/traffic_monitor/build/build_rpm.sh
----------------------------------------------------------------------
diff --git a/traffic_monitor/build/build_rpm.sh 
b/traffic_monitor/build/build_rpm.sh
index e8970a0..cb14028 100755
--- a/traffic_monitor/build/build_rpm.sh
+++ b/traffic_monitor/build/build_rpm.sh
@@ -62,9 +62,9 @@ function initBuildArea() {
        tm_dest=$(createSourceDir traffic_monitor)
 
        export TRAFFIC_CONTROL_VERSION="$TC_VERSION"
-    export MVN_CMD="mvn versions:set -DnewVersion=$TRAFFIC_CONTROL_VERSION"
-    echo $MVN_CMD
-    $MVN_CMD
+       local mvn_cmd="mvn versions:set -DnewVersion=$TRAFFIC_CONTROL_VERSION"
+       echo $mvn_cmd
+       (cd "$TM_DIR"; $mvn_cmd)
        cp -r "$TM_DIR"/{build,etc,src} "$tm_dest"/. || { echo "Could not copy 
to $tm_dest: $?"; exit 1; }
        cp  "$TM_DIR"/pom.xml "$tm_dest" || { echo "Could not copy to $tm_dest: 
$?"; exit 1; }
 

Reply via email to