diff --git a/runastyle b/runastyle index b09e6574c..e12e04954 100755 --- a/runastyle +++ b/runastyle @@ -5,10 +5,10 @@ # the past). # If project management wishes to take a newer astyle version into use -# just change this string to match astyle version string. -ASTYLE_VERSION="Artistic Style Version 2.01" +# just change this string to match the start of astyle version string. +ASTYLE_VERSION="Artistic Style Version 2." -if [ "`astyle --version 2>&1`" != "${ASTYLE_VERSION}" ]; then +if [[ "`astyle --version 2>&1`" != ${ASTYLE_VERSION}* ]]; then echo "You should use: ${ASTYLE_VERSION}"; exit 1; fi