From 6bab620d0a72200d0f41a366009abd539ffe7168 Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Thu, 18 Dec 2014 16:02:26 +0100 Subject: [PATCH] runastyle: Output detected version on mismatch --- runastyle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/runastyle b/runastyle index c25a305e0..7d8e8bd5c 100755 --- a/runastyle +++ b/runastyle @@ -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