PX4-Autopilot/Tools/check_submodules.sh
Thomas Gubler 68dbf0057a add mavlink submodule check script
The script checks if the mavlink submodule is up to date
2014-07-07 15:25:32 +02:00

11 lines
284 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
exit 0