Permalink
Browse files

Fix to script pull_nonca

It was failing for me unless the directory src/baseline/java already
existed.
  • Loading branch information...
1 parent 8d222d4 commit cbb75994f7be5680b5f7c83ef78b22192e4b1d4d @jafingerhut jafingerhut committed Jun 12, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 script/pull_nonca
View
@@ -1,7 +1,8 @@
#! /bin/sh
BASE_DIR=$(dirname $0)/..
-LOCAL_REPO_DIR=${BASE_DIR}/src/baseline/java
+LOCAL_REPO_PARENT_DIR=${BASE_DIR}/src/baseline
+LOCAL_REPO_DIR=${LOCAL_REPO_PARENT_DIR}/java
NONCA_REPO_URL='https://github.com/pmbauer/test.benchmark.nonca'
@@ -10,6 +11,6 @@ if [ -d "${LOCAL_REPO_DIR}" ]; then
cd ${LOCAL_REPO_DIR}
git pull
else
- cd ${LOCAL_REPO_DIR}/..
+ cd ${LOCAL_REPO_PARENT_DIR}
git clone ${NONCA_REPO_URL} java
fi

0 comments on commit cbb7599

Please sign in to comment.