Tools: skip check_submodules.sh when GIT_SUBMODULES_ARE_EVIL is set

this avoids using submodules when a specific NuttX tree is specified
This commit is contained in:
Andrew Tridgell 2014-07-08 20:24:18 +10:00 committed by Lorenz Meier
parent 52713bc0ba
commit bc06d839ea

View File

@ -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")