From a55ba6014274206195bf2bf1ffc72089252b0598 Mon Sep 17 00:00:00 2001 From: Joel Fernandes Date: Wed, 15 Mar 2017 10:41:05 -0700 Subject: [PATCH] lisa_shell: Check for missing submodules and update them Signed-off-by: Joel Fernandes --- src/shell/lisa_shell | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/shell/lisa_shell b/src/shell/lisa_shell index 3687eb0c4..e954f969c 100755 --- a/src/shell/lisa_shell +++ b/src/shell/lisa_shell @@ -245,6 +245,16 @@ echo echo } +function lisa-check-submods { +local missing=0 +if [ ! -f ./libs/devlib/setup.py ] || + [ ! -f ./libs/bart/setup.py ] || + [ ! -f ./libs/trappy/setup.py ]; then + echo "One or more submodules missing, updating"; + lisa-update submodules +fi +} + ################################################################################ # LISA Tests utility functions ################################################################################ @@ -351,6 +361,8 @@ Type "lisa-help" for on-line help on available commands EOF +lisa-check-submods + # Setup default SHELL text color echo -e "$LISASHELL_DEFAULT" -- GitLab