Update setup.sh

This commit is contained in:
Dennis Eichhorn 2018-02-23 12:51:22 +01:00 committed by GitHub
parent 32631e6625
commit 5e0c7042f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,26 +9,17 @@ mkdir -p ${ROOT_PATH}
rm -r -f ${INSPECTION_PATH}
mkdir -p ${INSPECTION_PATH}
cd ${BASE_PATH}
# Create git repositories
c=0;
for i in "${GITHUB_URL[@]}"
do
if [ "$c" -eq 0 ]
then
cd ${BASE_PATH}
fi
if [ "$c" -eq 1 ]
then
cd ${ROOT_PATH}
fi
git clone -b ${GIT_BRANCH} $i
c=$((c+1))
done
cd ${ROOT_PATH}
git submodule update --init --recursive
git submodule foreach checkout develop
# Creating directories for inspection
mkdir -p ${INSPECTION_PATH}/logs