mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-01 06:54:08 +08:00
19 lines
524 B
Bash
Executable File
19 lines
524 B
Bash
Executable File
#!/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
|
|
|
|
STATUSRETVAL=$(git status --porcelain | grep -i "M NuttX")
|
|
if [ "$STATUSRETVAL" == "" ]; then
|
|
echo "checked NuttX submodule, correct version found"
|
|
else
|
|
echo "NuttX sub repo not at correct version. Try 'git submodule update'"
|
|
exit 1
|
|
fi
|
|
|
|
exit 0
|