diff --git a/Tools/check_code_style_all.sh b/Tools/check_code_style_all.sh index e520752d82..76e03452a6 100755 --- a/Tools/check_code_style_all.sh +++ b/Tools/check_code_style_all.sh @@ -5,9 +5,10 @@ set -eu ASTYLE_VER_REQUIRED_1="Artistic Style Version 2.05.1" ASTYLE_VER_REQUIRED_2="Artistic Style Version 2.06" ASTYLE_VER_REQUIRED_3="Artistic Style Version 3.0" +ASTYLE_VER_REQUIRED_4="Artistic Style Version 3.0.1" astyle_ver() { - echo "PX4 requires ${ASTYLE_VER_REQUIRED}" + echo "PX4 requires at least ${ASTYLE_VER_REQUIRED_1}" echo "You can get the correct version here: https://sourceforge.net/projects/astyle/files/astyle/astyle%202.06/" } @@ -23,7 +24,8 @@ else if [ "$ASTYLE_VER" != "$ASTYLE_VER_REQUIRED_1" -a \ "$ASTYLE_VER" != "$ASTYLE_VER_REQUIRED_2" -a \ - "$ASTYLE_VER" != "$ASTYLE_VER_REQUIRED_3" ]; + "$ASTYLE_VER" != "$ASTYLE_VER_REQUIRED_3" -a \ + "$ASTYLE_VER" != "$ASTYLE_VER_REQUIRED_4" ]; then echo "Error: you're using ${ASTYLE_VER}" echo "but should be using ${ASTYLE_VER_REQUIRED} instead"