Skip to content

Commit

Permalink
chore: Fix check tooling versions (#4390)
Browse files Browse the repository at this point in the history
Comparing the clang versions should be != and not ==.
  • Loading branch information
philipphofmann authored Oct 2, 2024
1 parent 4d46e53 commit e88fe9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/check-tooling-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ LOCAL_CLANG_FORMAT_VERSION=$(clang-format --version | awk '{print $3}')
LOCAL_SWIFTLINT_VERSION=$(swiftlint version)
RESOLUTION_MESSAGE="Please run \`make init\` to update your local dev tools. This may actually upgrade to a newer version than what is currently recorded in the lockfile; if that happens, please commit the update to the lockfile as well."

if [ "${LOCAL_CLANG_FORMAT_VERSION}" == "${BREW_CLANG_FORMAT_VERSION}" ]; then
if [ "${LOCAL_CLANG_FORMAT_VERSION}" != "${BREW_CLANG_FORMAT_VERSION}" ]; then
echo "clang-format version mismatch, expected: ${BREW_CLANG_FORMAT_VERSION}, but found: ${LOCAL_CLANG_FORMAT_VERSION}. ${RESOLUTION_MESSAGE}"
exit 1
fi
Expand Down

0 comments on commit e88fe9a

Please sign in to comment.