Skip to content

Commit

Permalink
runastyle: Output detected version on mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjfox committed Dec 18, 2014
1 parent b96b468 commit 6bab620
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion runastyle
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6bab620

Please sign in to comment.