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

Commit 2f176ec

Browse files
author
HYChang
committed
fix(endpoint): Reduce the build process of legato target
This commit will reduce the build process of endpoint. The Legato AF will be downloaded when the "legato" directory is not exists. Close #700
1 parent 954efe0 commit 2f176ec

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

endpoint/build-legato.sh

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,17 @@ then
1212
fi
1313
source $COMMON_FILE
1414

15-
download_legato_repo
16-
build_legato_repo
15+
if [ ! -d "legato" ]
16+
then
17+
if ! download_legato_repo;
18+
then
19+
echo "Download Legato AF failed. Try to download again..."
20+
rm -rf legato/ .repo/
21+
if ! download_legato_repo;
22+
then
23+
echo "Failed to download the Legato AF. Please check your connection"
24+
exit 1
25+
fi
26+
fi
27+
build_legato_repo
28+
fi

0 commit comments

Comments
 (0)