mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Fixed check_submodules.sh for UAVCAN
This commit is contained in:
parent
9a56892c2b
commit
024c8213a1
@ -46,14 +46,22 @@ else
|
||||
fi
|
||||
|
||||
|
||||
if [ -d uavcan/libuavcan_drivers ];
|
||||
if [ -d uavcan ]
|
||||
then
|
||||
STATUSRETVAL=$(git status --porcelain | grep -i uavcan)
|
||||
if [ "$STATUSRETVAL" == "" ]; then
|
||||
STATUSRETVAL=$(git submodule summary | grep -A20 -i uavcan | grep "<")
|
||||
if [ -z "$STATUSRETVAL" ]
|
||||
then
|
||||
echo "Checked uavcan submodule, correct version found"
|
||||
else
|
||||
echo "uavcan sub repo not at correct version. Try 'make updatesubmodules'"
|
||||
echo ""
|
||||
echo ""
|
||||
echo "uavcan sub repo not at correct version. Try 'git submodule update'"
|
||||
echo "or follow instructions on http://pixhawk.org/dev/git/submodules"
|
||||
echo ""
|
||||
echo ""
|
||||
echo "New commits required:"
|
||||
echo "$(git submodule summary)"
|
||||
echo ""
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user