We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b1e5ac commit 8619148Copy full SHA for 8619148
1 file changed
runformat
@@ -14,8 +14,8 @@
14
UNCRUSTIFY_VERSION="0.80.1"
15
UNCRUSTIFY="${UNCRUSTIFY-uncrustify}"
16
17
-DETECTED_VERSION=$("$UNCRUSTIFY" --version 2>&1 | grep -o -E '[0-9]+\.[0-9]+\.[0-9]+')
18
-if [[ "$DETECTED_VERSION" != "${UNCRUSTIFY_VERSION}" ]]; then
+DETECTED_VERSION=$("$UNCRUSTIFY" --version 2>&1 | grep -o -E '[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