mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
add mavlink submodule check script
The script checks if the mavlink submodule is up to date
This commit is contained in:
parent
e103f5f8cb
commit
68dbf0057a
10
Tools/check_submodules.sh
Executable file
10
Tools/check_submodules.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
STATUSRETVAL=$(git status --porcelain | grep -i "M mavlink/include/mavlink/v1.0")
|
||||
if [ "$STATUSRETVAL" == "" ]; then
|
||||
echo "checked mavlink submodule, correct version found"
|
||||
else
|
||||
echo "mavlink sub repo not at correct version. Try 'git submodule update'"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exit 0
|
||||
Loading…
x
Reference in New Issue
Block a user