runastyle: Output detected version on mismatch

This commit is contained in:
Thomas Jarosch 2014-12-18 16:02:26 +01:00
parent b96b468d7a
commit 6bab620d0a
1 changed files with 3 additions and 1 deletions

View File

@ -9,8 +9,10 @@
ASTYLE_VERSION="Artistic Style Version 2.03"
ASTYLE="astyle"
if [[ "`$ASTYLE --version 2>&1`" != ${ASTYLE_VERSION}* ]]; then
DETECTED_VERSION=`$ASTYLE --version 2>&1`
if [[ "$DETECTED_VERSION" != ${ASTYLE_VERSION}* ]]; then
echo "You should use: ${ASTYLE_VERSION}";
echo "Detected: ${DETECTED_VERSION}"
exit 1;
fi