Skip to content

Commit

Permalink
common-apps: clone only if not there
Browse files Browse the repository at this point in the history
  • Loading branch information
ilg-ul committed Mar 16, 2021
1 parent 7171e2c commit 715e223
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions scripts/common-apps-functions-source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,16 @@ function build_ninja()

cd "${SOURCES_FOLDER_PATH}"

(
xbb_activate
if [ ! -d "${SOURCES_FOLDER_PATH}/${ninja_src_folder_name}" ]
then
(
xbb_activate

cd "${SOURCES_FOLDER_PATH}"
git_clone "${NINJA_GIT_URL}" "${NINJA_GIT_BRANCH}" \
"${NINJA_GIT_COMMIT}" "${ninja_src_folder_name}"
)
cd "${SOURCES_FOLDER_PATH}"
git_clone "${NINJA_GIT_URL}" "${NINJA_GIT_BRANCH}" \
"${NINJA_GIT_COMMIT}" "${ninja_src_folder_name}"
)
fi

(
mkdir -p "${BUILD_FOLDER_PATH}/${ninja_folder_name}"
Expand Down

0 comments on commit 715e223

Please sign in to comment.