Skip to content
This repository has been archived by the owner on Dec 26, 2022. It is now read-only.

Commit

Permalink
fix(endpoint): Reduce the build process of legato target
Browse files Browse the repository at this point in the history
This commit will reduce the build process of endpoint. The
Legato AF will be downloaded when the "legato" directory is not exists.

Close #700
  • Loading branch information
splasky committed Jul 12, 2020
1 parent 954efe0 commit 2f176ec
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions endpoint/build-legato.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,17 @@ then
fi
source $COMMON_FILE

download_legato_repo
build_legato_repo
if [ ! -d "legato" ]
then
if ! download_legato_repo;
then
echo "Download Legato AF failed. Try to download again..."
rm -rf legato/ .repo/
if ! download_legato_repo;
then
echo "Failed to download the Legato AF. Please check your connection"
exit 1
fi
fi
build_legato_repo
fi

0 comments on commit 2f176ec

Please sign in to comment.