diff options
author | Andrew Tridgell <tridge@samba.org> | 2014-07-08 20:24:18 +1000 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-08 15:01:48 +0200 |
commit | bc06d839eab504e039c27cd472bbd1162cb7bbf4 (patch) | |
tree | 5ec69e0b2f657fc7a506e0369bea4aff401c1f96 /Tools | |
parent | 52713bc0ba891854934f62ad856f1600e8ba3065 (diff) | |
download | px4-firmware-bc06d839eab504e039c27cd472bbd1162cb7bbf4.tar.gz px4-firmware-bc06d839eab504e039c27cd472bbd1162cb7bbf4.tar.bz2 px4-firmware-bc06d839eab504e039c27cd472bbd1162cb7bbf4.zip |
Tools: skip check_submodules.sh when GIT_SUBMODULES_ARE_EVIL is set
this avoids using submodules when a specific NuttX tree is specified
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/check_submodules.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tools/check_submodules.sh b/Tools/check_submodules.sh index fb180ef47..55bcc05ee 100755 --- a/Tools/check_submodules.sh +++ b/Tools/check_submodules.sh @@ -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") |