forked from Archive/PX4-Autopilot
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:
parent
02ad0f2b91
commit
ac8f179f2d
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue