Browse Source

Tools: skip check_submodules.sh when GIT_SUBMODULES_ARE_EVIL is set

this avoids using submodules when a specific NuttX tree is specified
sbg
Andrew Tridgell 11 years ago committed by Lorenz Meier
parent
commit
bc06d839ea
  1. 6
      Tools/check_submodules.sh

6
Tools/check_submodules.sh

@ -1,5 +1,11 @@ @@ -1,5 +1,11 @@
#!/bin/sh
[ -n "$GIT_SUBMODULES_ARE_EVIL" ] && {
# GIT_SUBMODULES_ARE_EVIL is set, meaning user doesn't want submodules
echo "Skipping submodules. NUTTX_SRC is set to $NUTTX_SRC"
exit 0
}
if [ -d NuttX/nuttx ];
then
STATUSRETVAL=$(git status --porcelain | grep -i "NuttX")

Loading…
Cancel
Save