Tools: skip check_submodules.sh when NUTTX_SRC 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 02ad0f2b91
commit ac8f179f2d
1 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,12 @@
#!/bin/sh
[ -n "$NUTTX_SRC" ] && {
# NUTTX_SRC is set, meaning user is overriding the NuttX tree to use. Don't
# use submodules to pull an alternatiie tree
echo "Skipping submodules as NUTTX_SRC is set to $NUTTX_SRC"
exit 0
}
if [ -d NuttX/nuttx ];
then
STATUSRETVAL=$(git status --porcelain | grep -i "NuttX")