From 5a2f4ff7e3bc0221210dcd5c92da38e80bc24066 Mon Sep 17 00:00:00 2001 From: Craig Bryant Date: Thu, 20 Aug 2015 10:53:50 -0600 Subject: [PATCH] target link was being created incorrectly If the target symbolic link already existed, an invalid link in target was created to java/target. Fixed by checking if the link exists before creating it Change-Id: I3ebcdcf0de1412838d78a2d2e647e265c41502e8 --- run_maven.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/run_maven.sh b/run_maven.sh index b5a153ba..b153475f 100755 --- a/run_maven.sh +++ b/run_maven.sh @@ -42,7 +42,9 @@ RC=$? # Copy the jars where the publisher will find them if [ $RUN_BUILD = "true" ]; then - ln -sf java/target target + if [ ! -L target ]; then + ln -sf java/target target + fi fi rm -fr apache-maven-3.2.1*