From 4bebca5481afa59d9bbb1665dc23651bd2181cac 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 | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/shell/lisa_shell b/src/shell/lisa_shell index 3687eb0c4..0992dcabf 100755 --- a/src/shell/lisa_shell +++ b/src/shell/lisa_shell @@ -245,6 +245,15 @@ echo echo } +function lisa-check-submods { +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 +360,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