forked from Archive/PX4-Autopilot
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
|
@ -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…
Reference in New Issue