Commit 3e83dc88 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Android: fix cwd logic of builds when not reusing the source directory

Make sure it's removing the source directory if it was cloned
Make sure we're creating the build directory always in the same place
parent 0e21b26b
......@@ -11,9 +11,10 @@ srcdir=`pwd`/src
cloned=0
if ! [ -d $srcdir/$name ] ; then
mkdir -p $srcdir
cd $srcdir
pushd $srcdir
git clone $repo --single-branch $GIT_EXTRA
cloned=1
popd
fi
mkdir build/$name -p
......@@ -27,7 +28,7 @@ if [ "$PERSIST" ]; then
else
rm -rf build/$name
if [ ! "$cloned" ]; then
if [ "$cloned" ]; then
rm -rf src/$name
fi
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment