From ab0a9d15ce4f3c904141c554eb13b3e528a74f9a Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Mon, 15 Jan 2018 20:29:21 -0700 Subject: [PATCH] test: fix build-linux-64.sh --- build-linux-64.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/build-linux-64.sh b/build-linux-64.sh index 5e75a2a1..e974ada8 100755 --- a/build-linux-64.sh +++ b/build-linux-64.sh @@ -1,14 +1,16 @@ #!/bin/bash -if [ -d build ]; then - echo "build already exists, remove it first" +BUILD_DIR=build + +if [ -d "$BUILD_DIR" ]; then + echo "$BUILD_DIR already exists, remove it first" exit 1 fi cmake --version -mkdir build -cd build +mkdir "$BUILD_DIR" +cd "$BUILD_DIR" wget https://github.com/embree/embree/releases/download/v2.15.0/embree-2.15.0.x86_64.linux.tar.gz -O embree.tgz tar xf embree.tgz cmake .. -DCMAKE_BUILD_TYPE=Release -Dembree_DIR="$(pwd)/embree-2.15.0.x86_64.linux"