We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5461bf1 commit e676f87Copy full SHA for e676f87
2 files changed
runformat
@@ -14,8 +14,8 @@
14
UNCRUSTIFY_VERSION="0.72.0"
15
UNCRUSTIFY="${UNCRUSTIFY-uncrustify}"
16
17
-DETECTED_VERSION=$("$UNCRUSTIFY" --version 2>&1 | grep -o -E '[0-9.]+')
18
-if [ "$DETECTED_VERSION" != "${UNCRUSTIFY_VERSION}" ]; then
+DETECTED_VERSION=$("$UNCRUSTIFY" --version 2>&1 | grep -o -E '[0-9]+\.[0-9]+\.[0-9]+')
+if [[ "$DETECTED_VERSION" != "${UNCRUSTIFY_VERSION}" ]]; then
19
echo "You should use version: ${UNCRUSTIFY_VERSION}"
20
echo "Detected version: ${DETECTED_VERSION}"
21
exit 1
0 commit comments