You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by de...@apache.org on 2017/05/24 22:28:07 UTC

[5/6] incubator-trafficcontrol git commit: fix dist dir creation in docker build

fix dist dir creation in docker build


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

Branch: refs/heads/master
Commit: 1c8d8aa2c1641506a9e8e3e154b5aacf3805d22e
Parents: 9a93f2e
Author: Dan Kirkwood <da...@gmail.com>
Authored: Wed May 24 21:10:12 2017 +0000
Committer: Dewayne Richardson <de...@apache.org>
Committed: Wed May 24 16:27:55 2017 -0600

----------------------------------------------------------------------
 infrastructure/docker/build/clean_build.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/1c8d8aa2/infrastructure/docker/build/clean_build.sh
----------------------------------------------------------------------
diff --git a/infrastructure/docker/build/clean_build.sh b/infrastructure/docker/build/clean_build.sh
index 09fc761..51e4fba 100755
--- a/infrastructure/docker/build/clean_build.sh
+++ b/infrastructure/docker/build/clean_build.sh
@@ -31,9 +31,10 @@ trap cleanup EXIT
 set -x
 
 # set owner of dist dir -- cleans up existing dist permissions...
-rm -rf /trafficcontrol/dist && mkdir -p /trafficcontrol/dist
+rm -rf /trafficcontrol/dist
 
 cp -a /trafficcontrol /tmp/. && \
 	cd /tmp/trafficcontrol && \
-	rm -rf dist && ln -fs /trafficcontrol/dist dist && \
+	mkdir -p /trafficcontrol/dist && \
+	ln -fs /trafficcontrol/dist dist && \
 	((((./build/build.sh $1 2>&1; echo $? >&3) | tee ./dist/build-$1.log >&4) 3>&1) | (read x; exit $x)) 4>&1