diff --git a/neo/astyle-code.sh b/neo/astyle-code.sh index f01c8654..5c5e2f92 100755 --- a/neo/astyle-code.sh +++ b/neo/astyle-code.sh @@ -26,7 +26,7 @@ if [ -z "$ASTYLE_BIN" ]; then ASTYLE_BIN="./astyle.$ASTYLE_SUFFIX" fi -ASTYLE_VERSION=$($ASTYLE_BIN --version | grep -o -e "[[:digit:]\.]*") +ASTYLE_VERSION=$($ASTYLE_BIN --version | grep -o -e "[[:digit:]\.]*$") if [ "$ASTYLE_VERSION" != "$OUR_ASTYLE_VERSION" ]; then echo "ERROR: $ASTYLE_BIN has version $ASTYLE_VERSION, but we want $OUR_ASTYLE_VERSION"