mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-02-07 07:08:41 +00:00
Git and file system install fix
This commit is contained in:
parent
1b1437912a
commit
71ccf1dc45
14
setup.sh
14
setup.sh
|
|
@ -4,16 +4,24 @@
|
||||||
|
|
||||||
# Previous cleanup
|
# Previous cleanup
|
||||||
rm -r -f ${ROOT_PATH}
|
rm -r -f ${ROOT_PATH}
|
||||||
|
mkdir -p ${ROOT_PATH}
|
||||||
|
|
||||||
# Handling git
|
# Handling git
|
||||||
for i in "${GIT_BRANCH[@]}"
|
c=0;
|
||||||
|
for i in "${GITHUB_URL[@]}"
|
||||||
do
|
do
|
||||||
if [ "$i" -eq 1 ]
|
if [ "$c" -eq 0 ]
|
||||||
|
then
|
||||||
|
cd ${BASE_PATH}
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$c" -eq 1 ]
|
||||||
then
|
then
|
||||||
cd ${ROOT_PATH}
|
cd ${ROOT_PATH}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git clone $i
|
git clone -b ${GIT_BRANCH} $i
|
||||||
|
c=$((c+1))
|
||||||
done
|
done
|
||||||
|
|
||||||
# Creating directories
|
# Creating directories
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user