add make format (check_code_style_all.sh --fix)

This commit is contained in:
Daniel Agar
2016-08-05 22:23:32 -04:00
committed by Lorenz Meier
parent a260a6eead
commit 968a3d499b
3 changed files with 23 additions and 5 deletions
+8 -2
View File
@@ -16,8 +16,14 @@ then
echo
rm -f $file.pretty
echo $file 'bad formatting, please run "./Tools/fix_code_style.sh' $file'"'
exit 1
if [[ $PX4_ASTYLE_FIX -eq 1 ]]
then
${DIR}/fix_code_style.sh $file
else
echo $file 'bad formatting, please run "./Tools/fix_code_style.sh' $file'"'
exit 1
fi
fi
fi