From 95ae7e283bca33d65c3e0dca357c2196102fa5f1 Mon Sep 17 00:00:00 2001 From: Matthew McGill <mhollismcgill@gmail.com> Date: Thu, 24 Jan 2019 18:17:41 +0000 Subject: [PATCH] Added recursive clone check Former-commit-id: c15ea788328d1dc546d0bbb2e00600f51dffa2b4 --- build-all.sh | 5 +++++ clean-all.sh | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/build-all.sh b/build-all.sh index f83a847dd..023a90d59 100755 --- a/build-all.sh +++ b/build-all.sh @@ -29,6 +29,11 @@ mkdir -p $ZEST_RUNTIME/lib64 mkdir -p $ZEST_RUNTIME/bin mkdir -p $ZEST_RUNTIME/sbin +if [ "$(ls -A "$PEDI_HOME" 2> /dev/null)" == "" ]; then + echo "pedi submodule is empty. Did you clone using --recursive?"; + exit 1; +fi + if [ ! -f manifest.txt.config -o ! -d "$PS_INSTALL" ]; then mkdir -p "$PS_INSTALL" $PEDI_HOME/pedi --setup -m manifest.txt -l ida -l ida_key -l ps -l zipr -l stars -i $PS_INSTALL diff --git a/clean-all.sh b/clean-all.sh index 1bc91ea01..673095943 100755 --- a/clean-all.sh +++ b/clean-all.sh @@ -10,6 +10,11 @@ if [ "$PEASOUP_UMBRELLA_DIR" != "$FULL_BUILD_LOC" ]; then exit 1; fi +if [ "$(ls -A "$PEDI_HOME" 2> /dev/null)" == "" ]; then + echo "pedi submodule is empty. Did you clone using --recursive?"; + exit 1; +fi + use_strata=0 if [[ $use_strata = 1 ]] ; then # stratafier -- GitLab