mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 10:46:33 +08:00
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:
committed by
Lorenz Meier
parent
52713bc0ba
commit
bc06d839ea
@@ -1,5 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/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 ];
|
if [ -d NuttX/nuttx ];
|
||||||
then
|
then
|
||||||
STATUSRETVAL=$(git status --porcelain | grep -i "NuttX")
|
STATUSRETVAL=$(git status --porcelain | grep -i "NuttX")
|
||||||
|
|||||||
Reference in New Issue
Block a user