aboutsummaryrefslogblamecommitdiff
path: root/Tools/check_submodules.sh
blob: c431e82252a4fce57e3e959a767dfdd81c2846d9 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                                  







                                                                                
      
#!/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