From 1f27f8e39a4851e8d1da5bb019bfc3f865a2b37c Mon Sep 17 00:00:00 2001 From: Florent Rougon Date: Sat, 23 Mar 2019 14:34:51 +0100 Subject: [PATCH] download_and_compile.sh: create openscenegraph dir only when OSG build is enabled Dont create the 'openscenegraph' directory when the OSG build is not selected (request from user ctesc356 of the French forum). --- download_and_compile.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/download_and_compile.sh b/download_and_compile.sh index c8c0957..1a30532 100755 --- a/download_and_compile.sh +++ b/download_and_compile.sh @@ -790,13 +790,13 @@ fi OSG_INSTALL_DIR=openscenegraph INSTALL_DIR_OSG=$INSTALL_DIR/$OSG_INSTALL_DIR cd "$CBD" -mkdir -p "openscenegraph" if _elementIn "OSG" "${WHATTOBUILD[@]}"; then _printLog "****************************************" _printLog "**************** OSG *******************" _printLog "****************************************" - cd "$CBD"/openscenegraph + mkdir -p "openscenegraph" + cd "openscenegraph" _gitDownload OSG _gitUpdate OpenSceneGraph-3.4