From 1c6ec627f2f6602101170ecc951051a4a94e84e7 Mon Sep 17 00:00:00 2001 From: Stephen Saunders Date: Thu, 10 Feb 2022 10:37:34 -0500 Subject: [PATCH] Minor fix for astyle-code.sh compatibility with macOS grep (cherry picked from commit 82206ebeaac285d68add1042e1f151857e67e53b) --- neo/astyle-code.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"